This file contains hidden or 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
<bugInfo> | |
<bugs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<bug id="20033733"> | |
<UId>FlexibleDataType-8548a492-5ffc-4b4d-8223-086ad9dc1770</UId> | |
<description>PART IMC HIT ORA 600 [KGL-HEAP-SIZE-EXCEEDED]</description> | |
</bug> | |
</bugs> | |
</bugInfo> | |
<bugInfo> | |
<bugs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
This file contains hidden or 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 java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ThreadFactory; | |
public class UncaughtExceptionHandlerSample { | |
public static void main(String[] args) throws NoSuchFieldException, InterruptedException { | |
//Threadに設定する場合 |
This file contains hidden or 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 CloseableTest implements AutoCloseable { | |
public static void main(String[] args) { | |
try (CloseableTest test = new CloseableTest()) { | |
test.throwException();; | |
} catch (Exception e) { | |
System.out.println("catch exception"); | |
System.out.println(e.getSuppressed()[0]); //close()メソッドの中で投げられた例外にcatch句でアクセスができる。 | |
} |
This file contains hidden or 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 test; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import static java.nio.charset.StandardCharsets.*; |
This file contains hidden or 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 test; | |
import java.io.BufferedWriter; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import static java.nio.charset.StandardCharsets.*; | |
public class CreateFile { |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM | |
5724-H88, 5724-J08, 5724-I63, 5655-W65, COPYRIGHT International Business Machines Corp., 2014 | |
All Rights Reserved * Licensed Materials - Property of IBM | |
US Government Users Restricted Rights - Use, duplication or disclosure | |
restricted by GSA ADP Schedule Contract with IBM Corp. | |
--> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
This file contains hidden or 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 static void main(String... args) { | |
List<ThreadInfo> threadInfos = Arrays.asList(ManagementFactory.getThreadMXBean().dumpAllThreads(true, | |
true)); | |
System.out.println(threadInfos); | |
} | |
----output---- | |
["Signal Dispatcher" Id=4 RUNNABLE |
This file contains hidden or 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
<?xml version="1.0"?> | |
<ruleset name="Complexcity" | |
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> | |
<description> | |
Java Complexcity | |
</description> |
This file contains hidden or 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
reader.lines().filter(s -> pattern.matcher(s).find()).map(s -> { | |
Matcher matcher = pattern.matcher(s); | |
matcher.find(); | |
DataBean bean = new DataBean(matcher.group()); | |
return bean; | |
}).forEach(s -> { |
NewerOlder