Skip to content

Commit

Permalink
Replace 2x empty lines with a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 26, 2024
1 parent d55c85f commit fa5748b
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public JXPathContextFactoryConfigurationError(final String msg) {
this.exception = null;
}


/**
* Create a new {@code JXPathContextFactoryConfigurationError} with a
* given {@code Exception} base cause of the error.
Expand All @@ -73,7 +72,6 @@ public JXPathContextFactoryConfigurationError(final Exception e, final String ms
this.exception = e;
}


/**
* Gets the message (if any) for this error . If there is no
* message for the exception and there is an encapsulated
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/apache/commons/jxpath/JXPathException.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public JXPathException(final String msg) {
this.exception = null;
}


/**
* Create a new {@code JXPathException} with a
* given {@code Throwable} base cause of the error.
Expand All @@ -71,7 +70,6 @@ public JXPathException(final String msg, final Throwable e) {
this.exception = e;
}


/**
* Gets the message (if any) for this error . If there is no
* message for the exception and there is an encapsulated
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/apache/commons/jxpath/ri/QName.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import java.io.Serializable;


/**
* A qualified name: a combination of an optional namespace prefix
* and an local name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer;
import org.apache.commons.jxpath.ri.model.beans.PropertyPointer;


/**
* A Pointer that points to a {@link DynaBean}. If the target DynaBean is Serializable,
* so should this instance be.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ else if (isIndexedProperty()) {
}
}


/**
* Convert a value to the appropriate property type.
* @param value to convert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ protected void ExpandBuff(final boolean wrapAround)
throw new Error(t.getMessage());
}


bufsize += 2048;
available = bufsize;
tokenBegin = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ public TokenMgrError(final boolean EOFSeen, final int lexState, final int errorL
character = curChar;
}


private int position;
private char character;


public int getPosition(){
return position;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,18 +462,15 @@ final public Object parseExpression() throws ParseException {
//}



// See XPath Syntax (http://www.w3.org/TR/xpath )


//void XPath() :
//{}
//{
// LocationPath()
// <EOF>
//}


/* [1] LocationPath ::= RelativeLocationPath | AbsoluteLocationPath */
final public Object LocationPath() throws ParseException {
Object ex = null;
Expand Down Expand Up @@ -614,7 +611,6 @@ final public Object RelativeLocationPath() throws ParseException {
/* [3] RelativeLocationPath ::= Step | RelativeLocationPath '/' Step | AbbreviatedRelativeLocationPath */
/* [11] AbbreviatedRelativeLocationPath ::= RelativeLocationPath '//' Step */


/*--------------------*/
/* 2.1 Location Steps */
/*--------------------*/
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/apache/commons/jxpath/TestNull.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.jxpath;


/**
* General purpose test bean for JUnit tests for the "jxpath" component.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.jxpath.ri.axes;


/**
* This bean is used to test infinite recursion protection in
* descendant search contexts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ public void testExpressionContext() {
"test:count(//strings)",
Integer.valueOf(21));


// The function receives a collection of pointers
// and checks their type for testing purposes
assertXPathValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.jxpath.ri.compiler;


/**
*/
public class TestFunctions2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public void testDocumentOrder() {
1);
}


public void testSetValue() {
assertXPathSetValue(
context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ public void testIndexedProperty() {
"/indexed[1]");
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.jxpath.ri.model.beans;


/**
* Test bean for JUnit tests of indexed property handling.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ public void testPageContext() {

assertSame("Request session", session, request.getSession());


final JXPathContext context = JXPathServletContexts.getPageContext(pageContext);
context.setLenient(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
public class ValueUtilsTest extends TestCase {



public void testGetValueFromArrayTooSmall() {
assertNull(ValueUtils.getValue(new Object[0], 2));
}
Expand Down

0 comments on commit fa5748b

Please sign in to comment.