"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pmd-core/src/main/java/net/sourceforge/pmd/lang/xpath/PMDFunctions.java" between
pmd-src-6.37.0.zip and pmd-src-6.38.0.zip

About: PMD is a source code analyzer for Java, JavaScript, XML and others. It finds unused variables, empty catch blocks, unnecessary object creation, and so forth. Sources (Java).

PMDFunctions.java  (pmd-src-6.37.0):PMDFunctions.java  (pmd-src-6.38.0)
/** /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/ */
package net.sourceforge.pmd.lang.xpath; package net.sourceforge.pmd.lang.xpath;
import net.sourceforge.pmd.annotation.InternalApi; import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.ast.xpath.internal.FileNameXPathFunction;
import net.sourceforge.pmd.lang.ast.xpath.saxon.ElementNode;
import net.sf.saxon.expr.XPathContext;
@InternalApi @InternalApi
@Deprecated @Deprecated
public final class PMDFunctions { public final class PMDFunctions {
private PMDFunctions() { } private PMDFunctions() { }
public static boolean matches(String s, String pattern1) { public static boolean matches(String s, String pattern1) {
return MatchesFunction.matches(s, pattern1); return MatchesFunction.matches(s, pattern1);
} }
skipping to change at line 39 skipping to change at line 44
public static boolean matches(String s, String pattern1, String pattern2, St ring pattern3, String pattern4, public static boolean matches(String s, String pattern1, String pattern2, St ring pattern3, String pattern4,
String pattern5) { String pattern5) {
return MatchesFunction.matches(s, pattern1, pattern2, pattern3, pattern4 , pattern5); return MatchesFunction.matches(s, pattern1, pattern2, pattern3, pattern4 , pattern5);
} }
public static boolean matches(String s, String pattern1, String pattern2, St ring pattern3, String pattern4, public static boolean matches(String s, String pattern1, String pattern2, St ring pattern3, String pattern4,
String pattern5, String pattern6) { String pattern5, String pattern6) {
return MatchesFunction.matches(s, pattern1, pattern2, pattern3, pattern4 , pattern5, pattern6); return MatchesFunction.matches(s, pattern1, pattern2, pattern3, pattern4 , pattern5, pattern6);
} }
public static String fileName(final XPathContext context) {
Node ctxNode = ((ElementNode) context.getContextItem()).getUnderlyingNod
e();
return FileNameXPathFunction.getFileName(ctxNode);
}
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)