Fix condition on logic for .pic.a files
Artifact.getExtension (which delegates to PathFragment.getFileExtension) will for two reasons never equal ".pic.a", it returns the substring after the rightmost period.
(While improving the documentation for File.getExtension, observed that this caller was not like the others.)
RELNOTES: None.
@@ -49,7 +49,7 @@ public abstract class CcImport implements RuleConfiguredTargetFactory {
Artifact noPicStaticLibrary = null;
Artifact picStaticLibrary = null;
if (staticLibrary != null) {
- if (staticLibrary.getExtension().equals(".pic.a")) {
+ if (staticLibrary.getFilename().endsWith(".pic.a")) {
picStaticLibrary = staticLibrary;
} else {
noPicStaticLibrary = staticLibrary;
