Skip to content

Commit 5548887

Browse files
committed
Merge branch 'staging' into development
2 parents ed16439 + 2042d29 commit 5548887

File tree

9 files changed

+308
-90
lines changed

9 files changed

+308
-90
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,46 @@ you `AndroidManifest.xml`
5151
In the project there is a script that download the jar with all the linters and
5252
it will copy to your directory `$HOME/.android/lint/`
5353

54+
## History
55+
56+
###v1.1.9
57+
- Fix compatibility with latest android tools.
58+
- Fix NPE in `InstanceStateDetector` when not using constants as keys.
59+
- Not using constants as keys in `InstanceStateDetector` is now reported.
60+
61+
###v1.1.8
62+
- Use Java 7 instead of 8.
63+
64+
###v1.1.7
65+
- Fix scope of the detectors
66+
- Fix in ParcelDetector when check for missing calling super
67+
68+
###v1.1.6
69+
- Add checks to prevent get incorrect Fields
70+
71+
###v1.1.5
72+
- Fix an issue when we are restoring a state
73+
74+
###v1.1.4
75+
- Fix checking for getArguments method when gets the variables
76+
77+
###v1.1.3
78+
- Check when a state is restored in a local variable and then in a field
79+
80+
###v1.1.2
81+
- Fix checking for local variables in InstanceStateDetector
82+
83+
###v1.1.1
84+
- Fix reading private method in ParcelDetector
85+
- InstanceStateDetector: Add temporal fix when checking for local variables
86+
87+
###v1.1.0
88+
- Add Readme, script for download the jar and licenses.
89+
90+
###v1.0.0
91+
- Add ParcelDetector, FactoryMethodDetector, InstanceStateDetector,
92+
ManifestDetector
93+
5494
# Copyright and License
5595
Copyright 2010-2015 Monits.
5696

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<guava-version>17.0</guava-version>
7373
<hamcrest-version>1.3</hamcrest-version>
7474
<maven.build.timestamp.format>yyyy</maven.build.timestamp.format>
75+
<jdk.version>1.7</jdk.version>
7576
</properties>
7677

7778
<build>

src/main/java/com/monits/linters/FactoryMethodDetector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import com.android.tools.lint.detector.api.Issue;
3232
import com.android.tools.lint.detector.api.Scope;
3333
import com.android.tools.lint.detector.api.Severity;
34-
import com.google.common.collect.Sets;
34+
import com.google.common.collect.ImmutableSet;
3535

3636
public class FactoryMethodDetector extends Detector implements Detector.ClassScanner {
3737

@@ -50,7 +50,7 @@ public class FactoryMethodDetector extends Detector implements Detector.ClassSca
5050
new Implementation(FactoryMethodDetector.class, Scope.CLASS_FILE_SCOPE));
5151

5252
private static final Set<String> FRAGMENT_TYPE =
53-
Sets.newHashSet("android/support/v4/app/Fragment", "android/app/Fragment");
53+
ImmutableSet.of("android/support/v4/app/Fragment", "android/app/Fragment");
5454

5555
@Override
5656
@Nullable

0 commit comments

Comments
 (0)