Skip to content

Commit

Permalink
add some more comments about internal api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rmuir committed Dec 16, 2015
1 parent 49f37a5 commit 4213800
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ import org.gradle.api.tasks.TaskAction
import org.apache.tools.ant.BuildLogger
import org.apache.tools.ant.Project

import org.slf4j.Logger
import org.slf4j.LoggerFactory

/**
* Basic static checking to keep tabs on third party JARs
*/
Expand Down Expand Up @@ -119,7 +116,6 @@ public class ThirdPartyAuditTask extends DefaultTask {
for (File jar : jars) {
names.add(jar.getName())
}
Logger logger = LoggerFactory.getLogger(getClass());
logger.error("[thirdPartyAudit] Scanning: " + names)

// warn that you won't see any forbidden apis warnings
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ forbiddenPatterns {
thirdPartyAudit.lenient = true
// uses internal sun ssl classes!
thirdPartyAudit.excludes = [
// sun.security.x509 (X509CertInfo, X509CertImpl, X500Name)
// uses internal java api: sun.security.x509 (X509CertInfo, X509CertImpl, X500Name)
'org.jboss.netty.handler.ssl.util.OpenJdkSelfSignedCertGenerator',
]

Expand Down
2 changes: 1 addition & 1 deletion modules/lang-groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ integTest {
// classes are missing, e.g. jline.console.completer.Completer
thirdPartyAudit.lenient = true
thirdPartyAudit.excludes = [
// sun.misc.Unsafe
// uses internal java api: sun.misc.Unsafe
'groovy.json.internal.FastStringUtils',
'groovy.json.internal.FastStringUtils$StringImplementation$1',
'groovy.json.internal.FastStringUtils$StringImplementation$2',
Expand Down
4 changes: 2 additions & 2 deletions plugins/discovery-azure/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ thirdPartyAudit.lenient = true
// WE ARE JAR HELLING WITH THE JDK AND THAT IS WHY THIS HAPPENS
// TODO: fix this!!!!!!!!!!!
thirdPartyAudit.excludes = [
// com.sun.xml.fastinfoset.stax.StAXDocumentParser
// uses internal java api: com.sun.xml.fastinfoset.stax.StAXDocumentParser
'com.sun.xml.bind.v2.runtime.unmarshaller.FastInfosetConnector',
'com.sun.xml.bind.v2.runtime.unmarshaller.FastInfosetConnector$CharSequenceImpl',
// com.sun.xml.fastinfoset.stax.StAXDocumentSerializer
// uses internal java api: com.sun.xml.fastinfoset.stax.StAXDocumentSerializer
'com.sun.xml.bind.v2.runtime.output.FastInfosetStreamWriterOutput',
]
6 changes: 3 additions & 3 deletions plugins/discovery-ec2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ test {
// classes are missing, e.g. org.apache.avalon.framework.logger.Logger
thirdPartyAudit.lenient = true
thirdPartyAudit.excludes = [
// com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
// com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault
// com.sun.org.apache.xpath.internal.XPathContext
// uses internal java api: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
// uses internal java api: com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault
// uses internal java api: com.sun.org.apache.xpath.internal.XPathContext
'com.amazonaws.util.XpathUtils',
]
8 changes: 4 additions & 4 deletions plugins/lang-python/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ integTest {
// classes are missing, e.g. org.tukaani.xz.FilterOptions
thirdPartyAudit.lenient = true
thirdPartyAudit.excludes = [
// sun.security.x509 (X509CertInfo, X509CertImpl, X500Name)
// uses internal java api: sun.security.x509 (X509CertInfo, X509CertImpl, X500Name)
'org.python.netty.handler.ssl.util.OpenJdkSelfSignedCertGenerator',

// sun.misc.Cleaner
// uses internal java api: sun.misc.Cleaner
'org.python.netty.util.internal.Cleaner0',

// sun.misc.Signal
// uses internal java api: sun.misc.Signal
'jnr.posix.JavaPOSIX',
'jnr.posix.JavaPOSIX$SunMiscSignalHandler',

// sun.misc.Unsafe
// uses internal java api: sun.misc.Unsafe
'com.kenai.jffi.MemoryIO$UnsafeImpl',
'com.kenai.jffi.MemoryIO$UnsafeImpl32',
'com.kenai.jffi.MemoryIO$UnsafeImpl64',
Expand Down
2 changes: 1 addition & 1 deletion plugins/mapper-attachments/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ forbiddenPatterns {
// classes are missing, e.g. org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList
thirdPartyAudit.lenient = true
thirdPartyAudit.excludes = [
// com.sun.syndication (SyndFeedInput, SyndFeed, SyndEntry, SyndContent)
// uses internal java api: com.sun.syndication (SyndFeedInput, SyndFeed, SyndEntry, SyndContent)
'org.apache.tika.parser.feed.FeedParser',
]
6 changes: 3 additions & 3 deletions plugins/repository-s3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ test {
// classes are missing, e.g. org.apache.log.Logger
thirdPartyAudit.lenient = true
thirdPartyAudit.excludes = [
// com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
// com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault
// com.sun.org.apache.xpath.internal.XPathContext
// uses internal java api: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
// uses internal java api: com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault
// uses internal java api: com.sun.org.apache.xpath.internal.XPathContext
'com.amazonaws.util.XpathUtils',
]
2 changes: 1 addition & 1 deletion qa/evil-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test {
// classes are missing, com.ibm.icu.lang.UCharacter
thirdPartyAudit.lenient = true
thirdPartyAudit.excludes = [
// sun.misc.Unsafe
// uses internal java api: sun.misc.Unsafe
'com.google.common.cache.Striped64',
'com.google.common.cache.Striped64$1',
'com.google.common.cache.Striped64$Cell',
Expand Down

0 comments on commit 4213800

Please sign in to comment.