Skip to content

Commit 504a881

Browse files
committed
Revert "optimise update deps"
This reverts some commit 15aa4b2. remove some warn
1 parent d5a51c6 commit 504a881

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

library/src/main/java/com/pokegoapi/api/gym/Gym.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class Gym extends Fort implements MapPoint {
5555
* @param proto The FortData to populate the Gym with.
5656
*/
5757
public Gym(PokemonGo api, FortData proto) {
58-
super (api, proto);
58+
super(api, proto);
5959
}
6060

6161
public boolean getEnabled() {

library/src/main/java/com/pokegoapi/api/map/fort/Pokestop.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* Created by mjmfighter on 7/20/2016.
2828
*/
29-
public class Pokestop extends Fort{
29+
public class Pokestop extends Fort {
3030

3131
/**
3232
* Instantiates a new Pokestop.
@@ -45,7 +45,8 @@ public Pokestop(PokemonGo api, FortDataOuterClass.FortData fortData) {
4545
*/
4646
@Deprecated
4747
public boolean hasLurePokemon() {
48-
return getFortData().hasLureInfo() && getFortData().getLureInfo().getLureExpiresTimestampMs() > getApi().currentTimeMillis();
48+
return getFortData().hasLureInfo() && getFortData().getLureInfo().getLureExpiresTimestampMs() > getApi()
49+
.currentTimeMillis();
4950
}
5051

5152
/**
@@ -85,12 +86,9 @@ public boolean hasLure(boolean updateFortDetails) throws RequestFailedException
8586
return true;
8687
}
8788
}
88-
8989
return false;
9090
}
91-
92-
return getFortData().getActiveFortModifierList()
93-
.contains(ItemIdOuterClass.ItemId.ITEM_TROY_DISK);
91+
return getFortData().getActiveFortModifierList().contains(ItemIdOuterClass.ItemId.ITEM_TROY_DISK);
9492
}
9593

9694
@Override

0 commit comments

Comments
 (0)