This repository was archived by the owner on Nov 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
demos/jaxrs/src/main/java/org/glassfish/jsondemos/jaxrs Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,11 @@ public void write(OutputStream os) throws IOException {
8080 }
8181
8282 private void writeFlickerFeed (OutputStream os ) throws IOException {
83- URL url = new URL ("http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=c1c65f33ade56454c77fc56e66226637 &format=json&nojsoncallback=1&per_page=20" );
83+ URL url = new URL ("http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=221160312e1c22ec60ecf336951b0e77 &format=json&nojsoncallback=1&per_page=20" );
8484 try (InputStream is = url .openStream ();
8585 JsonParser parser = Json .createParser (is );
8686 PrintWriter ps = new PrintWriter (new OutputStreamWriter (os , "UTF-8" ))) {
8787 String id = null ;
88- String farm = null ;
8988 String server = null ;
9089 String secret = null ;
9190
@@ -101,7 +100,7 @@ private void writeFlickerFeed(OutputStream os) throws IOException {
101100 break ;
102101 case "farm" :
103102 parser .next ();
104- farm = parser .getString ();
103+ String farm = parser .getString ();
105104 ps .println ("<img src=\" http://farm" +farm +".staticflickr.com/" +server +"/" +id +"_" +secret +".jpg\" >" );
106105 break ;
107106 case "server" :
You can’t perform that action at this time.
0 commit comments