[go: nahoru, domu]

Skip to content

Commit

Permalink
Windows friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaniv Inbar committed May 31, 2012
1 parent 2c515bc commit 0ffc1a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ page at http://checkstyle.sourceforge.net/config.html -->
-->
</module>

<module name="NewlineAtEndOfFile"/>
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf"/>
</module>

<module name="RegexpSingleline">
<!-- Checks that FIXME is not used in comments. TODO is preferred.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import com.google.api.client.json.AbstractJsonFactoryTest;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.util.StringUtils;

import java.util.ArrayList;

Expand All @@ -27,13 +26,15 @@
*/
public class GsonFactoryTest extends AbstractJsonFactoryTest {

private static final String GSON_LINE_SEPARATOR = "\n";

private static final String JSON_ENTRY_PRETTY =
"{" + StringUtils.LINE_SEPARATOR + " \"title\": \"foo\"" + StringUtils.LINE_SEPARATOR + "}";
private static final String JSON_FEED_PRETTY = "{" + StringUtils.LINE_SEPARATOR + " \"entries\": ["
+ StringUtils.LINE_SEPARATOR + " {" + StringUtils.LINE_SEPARATOR + " \"title\": \"foo\""
+ StringUtils.LINE_SEPARATOR + " }," + StringUtils.LINE_SEPARATOR + " {"
+ StringUtils.LINE_SEPARATOR + " \"title\": \"bar\"" + StringUtils.LINE_SEPARATOR + " }"
+ StringUtils.LINE_SEPARATOR + " ]" + StringUtils.LINE_SEPARATOR + "}";
"{" + GSON_LINE_SEPARATOR + " \"title\": \"foo\"" + GSON_LINE_SEPARATOR + "}";
private static final String JSON_FEED_PRETTY = "{" + GSON_LINE_SEPARATOR + " \"entries\": ["
+ GSON_LINE_SEPARATOR + " {" + GSON_LINE_SEPARATOR + " \"title\": \"foo\""
+ GSON_LINE_SEPARATOR + " }," + GSON_LINE_SEPARATOR + " {"
+ GSON_LINE_SEPARATOR + " \"title\": \"bar\"" + GSON_LINE_SEPARATOR + " }"
+ GSON_LINE_SEPARATOR + " ]" + GSON_LINE_SEPARATOR + "}";

public GsonFactoryTest(String name) {
super(name);
Expand Down

0 comments on commit 0ffc1a8

Please sign in to comment.