inputStream = new FileInputStream(file);
inputSource = new InputSource("file://" + file.getAbsolutePath());
} catch (Exception e) {
- ;
+ // Ignore
}
if (inputStream == null) {
try {
(getClass().getClassLoader()
.getResource(getConfigFile()).toString());
} catch (Exception e) {
- ;
+ // Ignore
}
}
(getClass().getClassLoader()
.getResource("server-embed.xml").toString());
} catch (Exception e) {
- ;
+ // Ignore
}
}
try {
input.close();
} catch (Throwable t) {
- ;
+ // Ignore
}
input = null;
}
try {
jarFile.close();
} catch (Throwable t) {
- ;
+ // Ignore
}
jarFile = null;
}
try {
reader.close();
} catch (IOException f) {
- ;
+ // Ignore
}
reader = null;
}
}
}
} catch (NamingException e) {
- ; // Silent catch: it's valid that no /WEB-INF directory exists
+ // Silent catch: it's valid that no /WEB-INF directory exists
}
}
try {
response.reset();
} catch (IllegalStateException e) {
- ;
+ // Ignore
}
response.sendError
try {
report(request, response, throwable);
} catch (Throwable tt) {
- ;
+ // Ignore
}
}
try {
report = sm.getString("http." + statusCode, message);
} catch (Throwable t) {
- ;
+ // Ignore
}
if (report == null)
return;
writer.write(sb.toString());
}
} catch (IOException e) {
- ;
+ // Ignore
} catch (IllegalStateException e) {
- ;
+ // Ignore
}
}
new String(buffer, start, len) + ")");
}
- ; // No processing required
+ // No processing required
}
saxLog.debug("processingInstruction('" + target + "','" + data + "')");
}
- ; // No processing is required
+ // No processing is required
}
saxLog.debug("skippedEntity(" + name + ")");
}
- ; // No processing required
+ // No processing required
}
protected void initialize() {
// Perform lazy initialization as needed
- ; // Nothing required by default
+ // Nothing required by default
}
* parameters instead.
*/
public void begin(Attributes attributes) throws Exception {
-
- ; // The default implementation does nothing
-
+ // The default implementation does nothing
}
* instead.
*/
public void body(String text) throws Exception {
-
- ; // The default implementation does nothing
-
+ // The default implementation does nothing
}
* <code>namespace</code> and <code>name</code> parameters instead.
*/
public void end() throws Exception {
-
- ; // The default implementation does nothing
-
+ // The default implementation does nothing
}
* called, to allow Rules to remove temporary data.
*/
public void finish() throws Exception {
-
- ; // The default implementation does nothing
-
+ // The default implementation does nothing
}
pos = nameEnd = getTokenEndPosition(bytes,pos,end);
// Skip whitespace
- while (pos < end && isWhiteSpace(bytes[pos])) {pos++; };
+ while (pos < end && isWhiteSpace(bytes[pos])) {pos++; }
// Check for an '=' -- This could also be a name-only
// Determine what type of value this is, quoted value,
// token, name-only with an '=', or other (bad)
switch (bytes[pos]) {
- case '"':; // Quoted Value
+ case '"': // Quoted Value
isQuoted = true;
valueStart=pos + 1; // strip "
// getQuotedValue returns the position before
valueStart = valueEnd = -1;
// The position is OK (On a delimiter)
break;
- default:;
+ default:
if (!isSeparator(bytes[pos])) {
// Token
valueStart=pos;
log("Invalid cookie. Value not a token or quoted value");
while (pos < end && bytes[pos] != ';' &&
bytes[pos] != ',')
- {pos++; };
+ {pos++; }
pos++;
// Make sure no special avpairs can be attributed to
// the previous cookie by setting the current cookie
// in a good state.
// Skip whitespace
- while (pos < end && isWhiteSpace(bytes[pos])) {pos++; };
+ while (pos < end && isWhiteSpace(bytes[pos])) {pos++; }
// Make sure that after the cookie we have a separator. This
*/
public static final int getTokenEndPosition(byte bytes[], int off, int end){
int pos = off;
- while (pos < end && !isSeparator(bytes[pos])) {pos++; };
+ while (pos < end && !isSeparator(bytes[pos])) {pos++; }
if (pos > end)
return end;
try {
date = formats[i].parse(value);
} catch (ParseException e) {
- ;
+ // Ignore
}
}
if (date == null) {
try {
response.add(new Attribute(names[i],getAttribute(names[i])));
} catch (Exception e) {
- ; // Not having a particular attribute in the response
- ; // is the indication of a getter problem
+ // Not having a particular attribute in the response
+ // is the indication of a getter problem
}
}
return (response);
try {
setAttribute(item);
} catch (Exception e) {
- ; // Ignore all exceptions
+ // Ignore all exceptions
}
}
object = mbean;
m = object.getClass().getMethod(getMethod, NO_ARGS_PARAM_SIG);
} catch (NoSuchMethodException e) {
- exception = e;;
+ exception = e;
}
if( m== null && resource != null ) {
try {
object = bean;
m = object.getClass().getMethod(setMethod, signature);
} catch (NoSuchMethodException e) {
- exception = e;;
+ exception = e;
}
if( m== null && resource != null ) {
try {
method = object.getClass().getMethod(aname, types);
} catch (NoSuchMethodException e) {
exception = e;
- ;
}
try {
if ((method == null) && (resource != null)) {
public void handshake(Socket sock)
throws IOException {
- ; // NOOP
+ // NOOP
}
KeyAttachment attachment = (KeyAttachment)sk.attachment();
try {
attachment.access();
- iterator.remove(); ;
+ iterator.remove();
sk.interestOps(sk.interestOps() & (~sk.readyOps()));
if ( sk.isReadable() ) {
countDown(attachment.getReadLatch());