« first day (106 days earlier)      last day (1333 days later) » 

5:10 PM
@Scratte around for some time?
want to ask a Java question
 
I'm here.. :) But I'm not sure I can answer it :)
 
I've got a public synchronized JsonObject get(String url, String... data) throws IOException method which I use to make GET requests
sometimes, however, data is quite large and the line which calls the method is quite large
can I split data into multiple lines?
 
String... data is a "vararg". It's basically an array. It's meant to be called with either an defined array or with multiple parameters, like get("yoururl", "data","moredate","evenmoredata")
You can also call it using a String[] myData = ... like so: get("yoururl", myData)
@double-beep Your phrasing "split data into multiple lines" doesn't really make sense though :) Since \n is perfectly valid in a String :)
 
5:30 PM
get("url", "a", "b", "c", "d", "e", "f") is quite long, so I wanted to make that shorter
get("url", "a", "b", "c",
      "d", "e", "f")
I thought I had tried that, but I was wrong
because it seems to work
 
That looks very valid to me.. java does not care about linebreaks on parameters on method calls :)
 
good then
thank you
 
Hmm.. :) I thought you question was deeper than that :) Sorry for the long explanations
 
by the way, I used maven-shade-plugin to create a flat jar for Belisarius
 
what's a "flat" jar? :)
 
5:38 PM
oops
I meant a fat jar
 
lol! I was sort of embarrassed to ask. I figured I should know.. :D
I've done it "manually" a few times. You can also add and updates files of a .jar :)
 

« first day (106 days earlier)      last day (1333 days later) »