Skip to content

Commit

Permalink
- fixed 1.7 java to 1.6 in gradle
Browse files Browse the repository at this point in the history
- update gradle wrapper
- fixed 1.6 compatibility
  • Loading branch information
rmuhamedgaliev committed Sep 27, 2013
1 parent d56f62f commit 5c2295a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ applicationDefaultJvmArgs = ["-Dfile.encoding=UTF=8"]

idea {
project {
jdkName = "1.7"
languageLevel = "1.7"
jdkName = "1.6"
languageLevel = "1.6"
}
}

Expand Down Expand Up @@ -106,7 +106,7 @@ dependencies {
}

task wrapper(type: Wrapper) {
gradleVersion = "1.7"
gradleVersion = "1.8"
}

jar {
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Sep 18 21:59:57 MSK 2013
#Fri Sep 27 18:44:44 SAMT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.7-bin.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
4 changes: 2 additions & 2 deletions src/main/java/com/twocheckout/model/Sale.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public TwocheckoutResponse stop() throws Exception {
Lineitem[] lineitems = invoice.getLineitems();
String stopped_lineitems = null;
StringBuffer stopped_lineitems_buffer = new StringBuffer();
HashMap<String, String> params = new HashMap<>();
HashMap<String, String> params = new HashMap<String, String>();
for(int i = 0;i< lineitems.length; i++){
if (lineitems[i].getBilling().getRecurringStatus() != null) {
if (lineitems[i].getBilling().getRecurringStatus().equals("active")) {
Expand All @@ -104,7 +104,7 @@ public TwocheckoutResponse stop() throws Exception {
}

public Sale refresh() throws Exception {
HashMap<String, String> args = new HashMap<>();
HashMap<String, String> args = new HashMap<String, String>();
args.put("sale_id", String.valueOf(sale_id));
String urlSuffix = "sales/detail_sale";
String response = TwocheckoutApi.get(urlSuffix, args);
Expand Down

0 comments on commit 5c2295a

Please sign in to comment.