for ( int i=0; i<size; i++) {
String id = oin.readUTF();
byte[] data = (byte[])oin.readObject();
- Session session = readSession(data,id);
+ readSession(data,id);
}//for
stateTransferred=true;
break;
* the element name otherwise
*/
public void end(String namespace, String name) throws Exception {
- Object top = digester.pop();
+ digester.pop();
}
if (multiParams == null) {
paramValues[multiParamIndex] = null;
- Object result = IntrospectionUtils.callMethodN(target, methodName,
- paramValues, paramTypes);
+ IntrospectionUtils.callMethodN(target, methodName, paramValues,
+ paramTypes);
return;
}
} else {
paramValues[multiParamIndex] = param;
}
- Object result = IntrospectionUtils.callMethodN(target, methodName,
- paramValues, paramTypes);
+ IntrospectionUtils.callMethodN(target, methodName, paramValues,
+ paramTypes);
}
}
byte[] data = new byte[1024];
Arrays.fill(data,(byte)1);
byte[] compress = compress(data);
- byte[] decompress = decompress(compress);
+ decompress(compress);
System.out.println("Debug test");
}
outputBuffer = ByteBuffer.allocateDirect(packetSize * 2);
// Cause loading of HexUtils
- int foo = HexUtils.DEC[0];
+ HexUtils.load();
// Cause loading of HttpMessages
HttpMessages.getMessage(200);
boolean useAvailableData)
throws IOException {
- byte[] buf = message.getBuffer();
int headerLength = message.getHeaderLength();
if (first) {
bodyMessage = new AjpMessage(packetSize);
// Cause loading of HexUtils
- int foo = HexUtils.DEC[0];
+ HexUtils.load();
// Cause loading of HttpMessages
HttpMessages.getMessage(200);
initializeFilters();
// Cause loading of HexUtils
- int foo = HexUtils.DEC[0];
+ HexUtils.load();
// Cause loading of FastHttpDateFormat
FastHttpDateFormat.getCurrentDate();
initializeFilters();
// Cause loading of HexUtils
- int foo = HexUtils.DEC[0];
+ HexUtils.load();
// Cause loading of FastHttpDateFormat
FastHttpDateFormat.getCurrentDate();
initializeFilters();
// Cause loading of HexUtils
- int foo = HexUtils.DEC[0];
+ HexUtils.load();
}
if(t.equals(String.class)) {
method.invoke(bean, new Object[] { values });
} else {
- Object tmpval = null;
createTypedArray (prop, bean, method, values, t,
propertyEditorClass);
}
//allocate the buffer - use byte[] to avoid calls to new.
byte holdbuffer[] = new byte[encoded.length()];
- char holdchar;
int bufcount = 0;
for (int count = 0; count < encoded.length(); count++) {
treeNode.setBody(body);
}
} else {
- TreeNode treeChild = convert(treeNode, child);
+ convert(treeNode, child);
}
}
}
if( apr==null ) return -1;
long xEnv=ep.getJniEnv();
- long cEndpointP=ep.getJniContext();
int type=ep.getType();
if( log.isDebugEnabled() ) log.debug("ChannelJni.invoke: " + ep + " " + type);
}
ep.setType(0);
log.debug( "Process msg ");
- int status=next.invoke( recv, ep );
+ next.invoke( recv, ep );
}
if( log.isDebugEnabled() )
log.debug( "Closing un channel");
protected void generateStupidMappings(Context context, PrintWriter objfile )
{
String ctxPath = context.getPath();
- String nPath=("".equals(ctxPath)) ? "/" : ctxPath;
if( noRoot && "".equals(ctxPath) ) {
log.debug("Ignoring root context in forward-all mode ");
// Can we process this request?
Reference ref = (Reference) obj;
- String type = ref.getClassName();
-
// Read the global ref addr
String globalName = null;
RefAddr refAddr = ref.get(ResourceLinkRef.GLOBALNAME);
String setter = "set" + capitalize(name);
try {
Method methods[] = findMethods(o.getClass());
- Method setPropertyMethod = null;
// find setFoo() method
for (int i = 0; i < methods.length; i++) {
Class<?> paramT[] = methods[i].getParameterTypes();
public static void addJarsFromClassPath(Vector<URL> jars, String cp)
throws IOException, MalformedURLException {
String sep = System.getProperty("path.separator");
- String token;
StringTokenizer st;
if (cp != null) {
st = new StringTokenizer(cp, sep);
/**
+ * Provide a mechanism for ensuring this class is loaded.
+ */
+ public static void load() {
+ // Nothing to do
+ }
+
+ /**
* [Private] Convert the specified value (0 .. 15) to the corresponding
* hexadecimal digit.
*
}
-}
+}
\ No newline at end of file
*/
public void end(String namespace, String name) throws Exception {
- Object top = digester.pop();
+ digester.pop();
}
MappingData mappingData) {
int pathEnd = path.getEnd();
- int pathOffset = path.getOffset();
int lastSlash = -1;
int length = -1;
*/
public MBeanOperationInfo getMethodInfo( ObjectName oname, String opName )
{
- String type=null;
MBeanInfo info=null;
try {
info=server.getMBeanInfo(oname);
for (Node argN = firstArgN; argN != null;
argN = DomUtil.getNext( argN ))
{
- String type=DomUtil.getAttribute(argN, "type");
+ DomUtil.getAttribute(argN, "type");
String value=DomUtil.getAttribute(argN, "value");
if( value==null ) {
// The value may be specified as CDATA