Skip to content

Commit b668b15

Browse files
author
Kannan Goundan
committed
examples/authorize: Remove useless imports/dependencies; write auth JSON to proper stream.
1 parent 6398137 commit b668b15

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

examples/authorize/pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515
<relativePath>../pom.xml</relativePath>
1616
</parent>
1717

18-
<dependencies>
19-
<dependency>
20-
<groupId>com.fasterxml.jackson.core</groupId>
21-
<artifactId>jackson-core</artifactId>
22-
<version>[2.2,2.3)</version>
23-
</dependency>
24-
<dependency>
25-
<groupId>com.fasterxml.jackson.core</groupId>
26-
<artifactId>jackson-databind</artifactId>
27-
<version>[2.2,2.3)</version>
28-
</dependency>
29-
</dependencies>
30-
3118
<build>
3219
<plugins>
3320
<plugin>

examples/authorize/src/com/dropbox/core/examples/authorize/Main.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
package com.dropbox.core.examples.authorize;
22

33
import com.dropbox.core.*;
4-
54
import com.dropbox.core.json.JsonReader;
6-
import com.fasterxml.jackson.core.*;
7-
import com.fasterxml.jackson.databind.ObjectMapper;
8-
import com.fasterxml.jackson.databind.SerializationFeature;
9-
import com.fasterxml.jackson.databind.node.ObjectNode;
105

116
import java.io.*;
127
import java.util.Locale;
@@ -87,7 +82,7 @@ public static void main(String[] args)
8782
catch (IOException ex) {
8883
System.err.println("Error saving to <auth-file-out>: " + ex.getMessage());
8984
System.err.println("Dumping to stderr instead:");
90-
DbxAuthInfo.Writer.writeToStream(authInfo, System.out);
85+
DbxAuthInfo.Writer.writeToStream(authInfo, System.err);
9186
System.exit(1); return;
9287
}
9388
}

0 commit comments

Comments
 (0)