24fb6d30ef4273c01477f10d56b508e7ea5abbf9,src/python/twitter/pants/__init__.py,,is_java,#Any#,180
Before Change
def is_java(target):
Returns True if the target has or generates java sources.
return isinstance(target, JavaLibrary) or (
isinstance(target, AnnotationProcessor)) or (
isinstance(target, JavaProtobufLibrary)) or (
isinstance(target, JavaTests)) or (
is_thrift(target))
def is_thrift(target):
Returns True if the target has thrift IDL sources.
After Change
def is_java(target):
Returns True if the target has or generates java sources.
return target.has_label("java")
def is_apt(target):
Returns True if the target exports an annotation processor.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances Project Name: pantsbuild/pants
Commit Name: 24fb6d30ef4273c01477f10d56b508e7ea5abbf9
Time: 2012-08-19
Author: john.sirois@gmail.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_java
Project Name: pantsbuild/pants
Commit Name: 24fb6d30ef4273c01477f10d56b508e7ea5abbf9
Time: 2012-08-19
Author: john.sirois@gmail.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_java
Project Name: pantsbuild/pants
Commit Name: da0968bd0bc32932e07eab180428576a7af9d3a3
Time: 2012-08-15
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_test
Project Name: pantsbuild/pants
Commit Name: 24fb6d30ef4273c01477f10d56b508e7ea5abbf9
Time: 2012-08-19
Author: john.sirois@gmail.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_test
Project Name: pantsbuild/pants
Commit Name: da0968bd0bc32932e07eab180428576a7af9d3a3
Time: 2012-08-15
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_java