The following document contains the results of PMD's CPD 3.9.
File | Line |
---|---|
it/imolinfo/jbi4cics/connection/jca/cics/CICSConnectionManager.java | 203 |
it/imolinfo/jbi4cics/connection/jca/cics/CICSConnectionManager.java | 233 |
Class[] parameterTypes = new Class[] {int.class}; Method method; Object[] arguments = new Object[] {methodParam}; Class objClass = obj.getClass(); try { method = objClass.getMethod(methodName, parameterTypes); method.invoke(obj, arguments); } catch (NoSuchMethodException e) { LOG.error("CIC000403_Method_invocation_error", new Object[] {methodName, objClass, methodParam}, e); throw new ConnectionException("CIC000403_Method_invocation_error", new Object[] {methodName, objClass, methodParam}, e); } catch (IllegalAccessException e) { LOG.error("CIC000403_Method_invocation_error", new Object[] {methodName, objClass, methodParam}, e); throw new ConnectionException("CIC000403_Method_invocation_error", new Object[] {methodName, objClass, methodParam}, e); } catch (InvocationTargetException e) { // On a InvocationTarget Exception, we should extract the internal Exception LOG.error("CIC000403_Method_invocation_error", new Object[] {methodName, objClass, methodParam}, e.getCause()); throw new ConnectionException("CIC000403_Method_invocation_error", new Object[] {methodName, objClass, methodParam}, e.getCause()); } } |
File | Line |
---|---|
it/imolinfo/jbi4cics/connection/jca/ims/IMSConnectionManager.java | 47 |
it/imolinfo/jbi4cics/connection/jca/ims/IMSConnectionManager.java | 96 |
this.getConnectorClassLoader().loadClass("com.ibm.connector2.ims.ico.IMSConnectionSpec").newInstance(); } catch (InstantiationException e) { LOG.error("CIC000500_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); throw new ConnectionException("CIC000500_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); } catch (IllegalAccessException e) { LOG.error("CIC000500_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); throw new ConnectionException("CIC000500_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); } catch (ClassNotFoundException e) { LOG.error("CIC000500_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); throw new ConnectionException("CIC000500_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); } if (imsConnectionSpec != null) { |
File | Line |
---|---|
it/imolinfo/jbi4cics/typemapping/cobol/HexDump.java | 117 |
it/imolinfo/jbi4cics/typemapping/cobol/HexDump.java | 209 |
int chars_read = data.length - j; if (chars_read > 16) { chars_read = 16; } buffer.append(dump(display_offset)).append(' '); for (int k = 0; k < 16; k++) { if (k < chars_read) { buffer.append(dump(data[ k + j ])); } else { buffer.append(" "); } buffer.append(' '); } for (int k = 0; k < chars_read; k++) { if ((data[ k + j ] >= ' ') && (data[ k + j ] < 127)) { buffer.append(( char ) data[ k + j ]); } else { buffer.append('.'); } } buffer.append(EOL); |
File | Line |
---|---|
it/imolinfo/jbi4cics/connection/jca/cics/CICSConnectionManager.java | 67 |
it/imolinfo/jbi4cics/connection/jca/cics/CICSConnectionManager.java | 119 |
this.getConnectorClassLoader().loadClass("com.ibm.connector2.cics.ECIInteractionSpec").newInstance(); } catch (InstantiationException e) { LOG.error("CIC000400_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); throw new ConnectionException("CIC000400_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); } catch (IllegalAccessException e) { LOG.error("CIC000400_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); throw new ConnectionException("CIC000400_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); } catch (ClassNotFoundException e) { LOG.error("CIC000400_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); throw new ConnectionException("CIC000400_Error_istantiating_connection_spec", new Object[] {e.getMessage()}, e); } |
File | Line |
---|---|
org/slf4j/impl/JDK14LoggerAdapter.java | 113 |
org/slf4j/impl/Log4jLoggerAdapter.java | 102 |
} /** * Formats the specified message, applying I18N if it is available for this * logger. * * @param format the format string. * @param args the optional arguments. * @return the formatted message, eventually internationalized. */ private String formatMessage(final String format, final Object ... args) { String msg; if (isI18N()) { if (args.length == 0) { msg = messages.getString(format); } else { msg = messages.getString(format, args); } } else { if (args.length == 0) { msg = format; } else { try { msg = MessageFormat.format(format, args); } catch (IllegalArgumentException e) { msg = format; } } } return msg; } /** * Gets the name of this <code>Logger</code>. * * @return the name of this <code>Logger</code> instance. */ public String getName() { |