This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#assign x = 1000> | |
${x} <#-- 1,000 --> | |
${x?string} <#-- 1,000 --> | |
${x?c} <#-- 1000 --> | |
${x?string.computer} <#-- 1000 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.ibm.icu.text.MessageFormat; | |
import java.util.Locale; | |
import java.util.ResourceBundle; | |
public class IcuDemo { | |
private static final int[] NUMBERS = new int[] {0, 1, 2, 5, 11, 22, 39}; | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lastUpdated=Updated {0} {0,choice,0#seconds|1#second|1<seconds} ago |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testDecimalFormat() { | |
double value = -4000d; | |
final String expected = "(4,000.00)"; | |
final String actualA = new DecimalFormat("#,##0.00;(#,##0.00)").format(value); | |
final String actualB = new DecimalFormat("#,##0.00;(#)").format(value); | |
// passes | |
assertEquals(expected, actualA); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[WARNING] Used undeclared dependencies found: | |
[WARNING] com.google.code.findbugs:jsr305:jar:1.3.9:compile | |
[WARNING] Unused declared dependencies found: | |
[WARNING] com.google.guava:guava:jar:10.0.1:compile | |
[WARNING] ch.qos.logback:logback-classic:jar:1.0.0:test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<version>1.0.1</version> | |
<executions> | |
<execution> | |
<id>enforce-no-snapshots</id> | |
<goals> | |
<goal>enforce</goal> | |
</goals> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Controller | |
@RequestMapping("/json") | |
public class JsonRobotsController { | |
@Robot(directives = NO_INDEX) | |
@RequestMapping(produces = "application/json") | |
@ResponseBody | |
public Map<String, String> json() { | |
return ImmutableMap.of("some", "data"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ContextConfiguration(locations = "/my-mvc-context.xml") | |
public class ExampleTest extends AbstractViewRenderTest { | |
@Override | |
public String given(Model model) { | |
Map module = new HashMap(); | |
module.put("id", "some-id"); | |
module.put("text", "some-text"); | |
model.addAttribute("module", module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns cljmvn) | |
(println (str "Hello " (first *command-line-args*))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/ant-javafx.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/dt.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/javafx-doclet.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/javafx-mx.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/jconsole.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/sa-jdi.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/tools.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre/lib/jfr.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre/lib/jce.jar | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre/lib/charsets.jar |
OlderNewer