Skip to content

Commit

Permalink
Merge pull request #53 from mapzen/upgrade-kotlin
Browse files Browse the repository at this point in the history
Upgrade Kotlin version from Beta to RC
  • Loading branch information
ecgreb committed Mar 22, 2016
2 parents e874b6f + b96e486 commit 2f59d22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.0.0-beta-1103'
ext.kotlin_version = '1.0.1'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mapzen/valhalla/Route.kt
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public open class Route {
}

public open fun getNextInstructionIndex(): Int? {
return instructions!!.indexOfRaw(getNextInstruction())
return instructions?.indexOf(getNextInstruction())
}

public open fun getCurrentInstruction(): Instruction {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/mapzen/valhalla/RouteTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void hasCorrectTotalDistance() throws Exception {
public void shouldConvertTotalDistanceInMilesToMeters() throws Exception {
route = getRoute("valhalla_miles");
assertThat(route.getTotalDistance())
.isEqualTo((int) Math.round(0.712 * Instruction.MI_TO_METERS));
.isEqualTo((int) Math.round(0.712 * Instruction.Companion.getMI_TO_METERS()));
}

@Test
Expand Down

0 comments on commit 2f59d22

Please sign in to comment.