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
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World!"); | |
} | |
} |
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
function() { | |
alert("Hello World!"); | |
} |
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
package sample; | |
import java.util.regex.Pattern; | |
import org.apache.bcel.classfile.JavaClass; | |
import edu.umd.cs.findbugs.BugInstance; | |
import edu.umd.cs.findbugs.BugReporter; | |
import edu.umd.cs.findbugs.BytecodeScanningDetector; | |
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
<FindbugsPlugin> | |
<Detector class="sample.PageDetector" speed="fast" /> | |
<BugPattern abbrev="PAGE" type="INVALID_PARENT_PAGE" category="CORRECTNESS" /> | |
</FindbugsPlugin> |
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
<MessageCollection> | |
<Detector class="sample.PageDetector"> | |
<Details>Pageクラスをチェックします。</Details> | |
</Detector> | |
<BugPattern type="INVALID_PARENT_PAGE"> | |
<ShortDescription>Pageクラスの不正な継承</ShortDescription> | |
<LongDescription> | |
PageクラスがabstractではないPageクラスを継承してはいけません。 | |
</LongDescription> | |
<Details> |
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
package sample; | |
import java.lang.reflect.Method; | |
import org.junit.internal.runners.InitializationError; | |
import org.junit.internal.runners.JUnit4ClassRunner; | |
import org.junit.runner.notification.RunNotifier; | |
public class ContextRunner extends JUnit4ClassRunner { | |
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
package sample; | |
import java.lang.reflect.Method; | |
public class TestContext { | |
private static final ThreadLocal<TestContext> threadLocal = | |
new ThreadLocal<TestContext>(); | |
public static void start(Method m) { |
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
public class 分岐 { | |
private 条件 | |
private 実行した | |
private 実行 | |
public 分岐(条件, クロージャ) { | |
this.条件 = 条件 |
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
public class Kuku { | |
public static void main(String[] args) { | |
for (int i=0,j=1; i<81; j=++i % 9 + 1) System.out.printf("%d%c", j * (i / 9 + 1), 32 - j / 9 * 22); | |
} | |
} |
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
#!/bin/bash | |
cd `dirname $0` | |
CMD="cvs his -xMAR" | |
if [ "$1" = "" ]; then | |
echo "Usage: $0 [user] [date] [time]" | |
echo " user : user name or all." | |
echo " date : yyyy/MM/dd or yyyy/MM/dd." |
OlderNewer