mirror of https://github.com/apache/lucene.git
master is on java 11!
This commit is contained in:
parent
14df77295d
commit
4129daa6dd
|
@ -49,13 +49,6 @@ def invalidPatterns = [
|
|||
(~$/import java\.lang\.\w+;/$) : 'java.lang import is unnecessary'
|
||||
]
|
||||
|
||||
// Python and others merrily use var declarations, this is a problem _only_ in Java at least for 8x where we're forbidding var declarations
|
||||
def invalidJavaOnlyPatterns = [
|
||||
(~$/\n\s*var\s+.*=.*<>.*/$) : 'Diamond operators should not be used with var',
|
||||
(~$/\n\s*var\s+/$) : 'var is not allowed in until we stop development on the 8x code line'
|
||||
]
|
||||
|
||||
|
||||
def baseDir = properties['basedir'];
|
||||
def baseDirLen = baseDir.length() + 1;
|
||||
|
||||
|
@ -209,11 +202,6 @@ ant.fileScanner{
|
|||
reportViolation(f, "Solr test cases should extend SolrTestCase rather than LuceneTestCase");
|
||||
}
|
||||
}
|
||||
invalidJavaOnlyPatterns.each { pattern,name ->
|
||||
if (pattern.matcher(text).find()) {
|
||||
reportViolation(f, name);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (f.name.endsWith('.xml') || f.name.endsWith('.xml.template')) {
|
||||
checkLicenseHeaderPrecedes(f, '<tag>', xmlTagPattern, xmlCommentPattern, text, ratDocument);
|
||||
|
|
Loading…
Reference in New Issue