[Fb-contrib-commit] SF.net SVN: fb-contrib:[1803] trunk/fb-contrib
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2016-11-18 03:30:52
|
Revision: 1803
http://sourceforge.net/p/fb-contrib/code/1803
Author: dbrosius
Date: 2016-11-18 03:30:45 +0000 (Fri, 18 Nov 2016)
Log Message:
-----------
move src to match git layout
Added Paths:
-----------
trunk/fb-contrib/etc/samples.fbp
trunk/fb-contrib/src/main/
trunk/fb-contrib/src/main/java/
trunk/fb-contrib/src/main/java/com/
trunk/fb-contrib/src/samples/
trunk/fb-contrib/src/samples/java/
trunk/fb-contrib/src/samples/java/ABC_Sample.java
trunk/fb-contrib/src/samples/java/ACEM_Sample.java
trunk/fb-contrib/src/samples/java/AFBR_Sample.java
trunk/fb-contrib/src/samples/java/AIOB_Sample.java
trunk/fb-contrib/src/samples/java/AOM_Sample.java
trunk/fb-contrib/src/samples/java/AWCBR_Sample.java
trunk/fb-contrib/src/samples/java/BAS_Sample.java
trunk/fb-contrib/src/samples/java/BED_Sample.java
trunk/fb-contrib/src/samples/java/BL_Sample.java
trunk/fb-contrib/src/samples/java/BRPI_Sample.java
trunk/fb-contrib/src/samples/java/BSB_Sample.java
trunk/fb-contrib/src/samples/java/CAAL_Sample.java
trunk/fb-contrib/src/samples/java/CAO_Sample.java
trunk/fb-contrib/src/samples/java/CBC_Sample.java
trunk/fb-contrib/src/samples/java/CBX_Sample.java
trunk/fb-contrib/src/samples/java/CCI_Sample.java
trunk/fb-contrib/src/samples/java/CCNE_Sample.java
trunk/fb-contrib/src/samples/java/CEBE_EqualsToEqualsSample.java
trunk/fb-contrib/src/samples/java/CE_Sample.java
trunk/fb-contrib/src/samples/java/CFS_Sample.java
trunk/fb-contrib/src/samples/java/CHBH_HashcodeToHashcodeSample.java
trunk/fb-contrib/src/samples/java/CLI_Sample.java
trunk/fb-contrib/src/samples/java/CNC_Sample.java
trunk/fb-contrib/src/samples/java/COM_Sample.java
trunk/fb-contrib/src/samples/java/CRF_Sample.java
trunk/fb-contrib/src/samples/java/CSBTS_StringToStringSample.java
trunk/fb-contrib/src/samples/java/CSI_Sample.java
trunk/fb-contrib/src/samples/java/CTU_Sample.java
trunk/fb-contrib/src/samples/java/CU_Sample.java
trunk/fb-contrib/src/samples/java/CVAA_Sample.java
trunk/fb-contrib/src/samples/java/DDC_Sample.java
trunk/fb-contrib/src/samples/java/DLC_Sample.java
trunk/fb-contrib/src/samples/java/DMC_Sample.java
trunk/fb-contrib/src/samples/java/DRE_Sample.java
trunk/fb-contrib/src/samples/java/DSOC_Sample.java
trunk/fb-contrib/src/samples/java/DTEP_Sample.java
trunk/fb-contrib/src/samples/java/DWI_Sample.java
trunk/fb-contrib/src/samples/java/EXS_Sample.java
trunk/fb-contrib/src/samples/java/FCBL_Sample.java
trunk/fb-contrib/src/samples/java/FCCD_Sample.java
trunk/fb-contrib/src/samples/java/FPL_Sample.java
trunk/fb-contrib/src/samples/java/FP_Sample.java
trunk/fb-contrib/src/samples/java/HCP_Sample.java
trunk/fb-contrib/src/samples/java/HES_Sample.java
trunk/fb-contrib/src/samples/java/ICA_Sample.java
trunk/fb-contrib/src/samples/java/IICU_Sample.java
trunk/fb-contrib/src/samples/java/IKNC_Sample.java
trunk/fb-contrib/src/samples/java/IMC_Sample.java
trunk/fb-contrib/src/samples/java/IOI_Sample.java
trunk/fb-contrib/src/samples/java/IPU_Sample.java
trunk/fb-contrib/src/samples/java/ISB_Sample.java
trunk/fb-contrib/src/samples/java/ITC_Sample.java
trunk/fb-contrib/src/samples/java/ITU_Sample.java
trunk/fb-contrib/src/samples/java/JPAI_Sample.java
trunk/fb-contrib/src/samples/java/JVR_Sample.java
trunk/fb-contrib/src/samples/java/JXI_Sample.java
trunk/fb-contrib/src/samples/java/LEST_Sample.java
trunk/fb-contrib/src/samples/java/LGO_Sample.java
trunk/fb-contrib/src/samples/java/LII_Sample.java
trunk/fb-contrib/src/samples/java/LO_Sample.java
trunk/fb-contrib/src/samples/java/LSC_Sample.java
trunk/fb-contrib/src/samples/java/LSYC_Sample.java
trunk/fb-contrib/src/samples/java/MAC_Sample.java
trunk/fb-contrib/src/samples/java/MDM_Sample.java
trunk/fb-contrib/src/samples/java/MOM_Sample.java
trunk/fb-contrib/src/samples/java/MRC_Sample.java
trunk/fb-contrib/src/samples/java/MTA_Sample.java
trunk/fb-contrib/src/samples/java/MUC_Sample.java
trunk/fb-contrib/src/samples/java/NAB_Sample.java
trunk/fb-contrib/src/samples/java/NCMU_Sample.java
trunk/fb-contrib/src/samples/java/NCS_Sample.java
trunk/fb-contrib/src/samples/java/NFF_Sample.java
trunk/fb-contrib/src/samples/java/NIR_Sample.java
trunk/fb-contrib/src/samples/java/NMCS_Sample.java
trunk/fb-contrib/src/samples/java/NOS_Sample.java
trunk/fb-contrib/src/samples/java/NPMC_Sample.java
trunk/fb-contrib/src/samples/java/NRTL_Sample.java
trunk/fb-contrib/src/samples/java/NSE_Sample.java
trunk/fb-contrib/src/samples/java/OCP_Sample.java
trunk/fb-contrib/src/samples/java/OC_Sample.java
trunk/fb-contrib/src/samples/java/ODN_Sample.java
trunk/fb-contrib/src/samples/java/OPM_Sample.java
trunk/fb-contrib/src/samples/java/PCAIL_Sample.java
trunk/fb-contrib/src/samples/java/PCOA_Sample.java
trunk/fb-contrib/src/samples/java/PDP_Sample.java
trunk/fb-contrib/src/samples/java/PIS_Sample.java
trunk/fb-contrib/src/samples/java/PL_Sample.java
trunk/fb-contrib/src/samples/java/PMB_Sample.java
trunk/fb-contrib/src/samples/java/PME_Sample.java
trunk/fb-contrib/src/samples/java/PRMC_Sample.java
trunk/fb-contrib/src/samples/java/PSC_Sample.java
trunk/fb-contrib/src/samples/java/PUS_Sample.java
trunk/fb-contrib/src/samples/java/ROOM_Sample.java
trunk/fb-contrib/src/samples/java/S508C_Sample.java
trunk/fb-contrib/src/samples/java/SACM_Sample.java
trunk/fb-contrib/src/samples/java/SCA_Sample.java
trunk/fb-contrib/src/samples/java/SCII_Sample.java
trunk/fb-contrib/src/samples/java/SCI_Sample.java
trunk/fb-contrib/src/samples/java/SCRV_Sample.java
trunk/fb-contrib/src/samples/java/SCR_Sample.java
trunk/fb-contrib/src/samples/java/SCSS_Sample.java
trunk/fb-contrib/src/samples/java/SEC_Sample.java
trunk/fb-contrib/src/samples/java/SEO_Sample.java
trunk/fb-contrib/src/samples/java/SGSU_Sample.java
trunk/fb-contrib/src/samples/java/SG_Sample.java
trunk/fb-contrib/src/samples/java/SIL_Sample.java
trunk/fb-contrib/src/samples/java/SJVU_Sample.java
trunk/fb-contrib/src/samples/java/SLS_Sample.java
trunk/fb-contrib/src/samples/java/SMII_Sample.java
trunk/fb-contrib/src/samples/java/SNG_Sample.java
trunk/fb-contrib/src/samples/java/SPP_Sample.java
trunk/fb-contrib/src/samples/java/STB_Sample.java
trunk/fb-contrib/src/samples/java/STS_Sample.java
trunk/fb-contrib/src/samples/java/STT_Sample.java
trunk/fb-contrib/src/samples/java/SUA_Sample.java
trunk/fb-contrib/src/samples/java/SWCO_Sample.java
trunk/fb-contrib/src/samples/java/TBP_Sample.java
trunk/fb-contrib/src/samples/java/TR_Sample.java
trunk/fb-contrib/src/samples/java/UAA_Sample.java
trunk/fb-contrib/src/samples/java/UCC_Sample.java
trunk/fb-contrib/src/samples/java/UCPM_Sample.java
trunk/fb-contrib/src/samples/java/UEC_Sample.java
trunk/fb-contrib/src/samples/java/UMTP_Sample.java
trunk/fb-contrib/src/samples/java/UNNC_Sample.java
trunk/fb-contrib/src/samples/java/UP_Sample.java
trunk/fb-contrib/src/samples/java/URV_Sample.java
trunk/fb-contrib/src/samples/java/USBR_Sample.java
trunk/fb-contrib/src/samples/java/USS_Sample.java
trunk/fb-contrib/src/samples/java/UTAO_Sample.java
trunk/fb-contrib/src/samples/java/UTA_Sample.java
trunk/fb-contrib/src/samples/java/UVA_Sample.java
trunk/fb-contrib/src/samples/java/WEM_Sample.java
trunk/fb-contrib/src/samples/java/WI_Sample.java
trunk/fb-contrib/src/samples/java/WOC_Sample.java
trunk/fb-contrib/src/samples/java/samples-bugs.xml
Removed Paths:
-------------
trunk/fb-contrib/samples/ABC_Sample.java
trunk/fb-contrib/samples/ACEM_Sample.java
trunk/fb-contrib/samples/AFBR_Sample.java
trunk/fb-contrib/samples/AIOB_Sample.java
trunk/fb-contrib/samples/AOM_Sample.java
trunk/fb-contrib/samples/AWCBR_Sample.java
trunk/fb-contrib/samples/BAS_Sample.java
trunk/fb-contrib/samples/BED_Sample.java
trunk/fb-contrib/samples/BL_Sample.java
trunk/fb-contrib/samples/BRPI_Sample.java
trunk/fb-contrib/samples/BSB_Sample.java
trunk/fb-contrib/samples/CAAL_Sample.java
trunk/fb-contrib/samples/CAO_Sample.java
trunk/fb-contrib/samples/CBC_Sample.java
trunk/fb-contrib/samples/CBX_Sample.java
trunk/fb-contrib/samples/CCI_Sample.java
trunk/fb-contrib/samples/CCNE_Sample.java
trunk/fb-contrib/samples/CEBE_EqualsToEqualsSample.java
trunk/fb-contrib/samples/CE_Sample.java
trunk/fb-contrib/samples/CFS_Sample.java
trunk/fb-contrib/samples/CHBH_HashcodeToHashcodeSample.java
trunk/fb-contrib/samples/CLI_Sample.java
trunk/fb-contrib/samples/CNC_Sample.java
trunk/fb-contrib/samples/COM_Sample.java
trunk/fb-contrib/samples/CRF_Sample.java
trunk/fb-contrib/samples/CSBTS_StringToStringSample.java
trunk/fb-contrib/samples/CSI_Sample.java
trunk/fb-contrib/samples/CTU_Sample.java
trunk/fb-contrib/samples/CU_Sample.java
trunk/fb-contrib/samples/CVAA_Sample.java
trunk/fb-contrib/samples/DDC_Sample.java
trunk/fb-contrib/samples/DLC_Sample.java
trunk/fb-contrib/samples/DMC_Sample.java
trunk/fb-contrib/samples/DRE_Sample.java
trunk/fb-contrib/samples/DSOC_Sample.java
trunk/fb-contrib/samples/DTEP_Sample.java
trunk/fb-contrib/samples/DWI_Sample.java
trunk/fb-contrib/samples/EXS_Sample.java
trunk/fb-contrib/samples/FCBL_Sample.java
trunk/fb-contrib/samples/FCCD_Sample.java
trunk/fb-contrib/samples/FPL_Sample.java
trunk/fb-contrib/samples/FP_Sample.java
trunk/fb-contrib/samples/HCP_Sample.java
trunk/fb-contrib/samples/HES_Sample.java
trunk/fb-contrib/samples/ICA_Sample.java
trunk/fb-contrib/samples/IICU_Sample.java
trunk/fb-contrib/samples/IKNC_Sample.java
trunk/fb-contrib/samples/IMC_Sample.java
trunk/fb-contrib/samples/IOI_Sample.java
trunk/fb-contrib/samples/IPU_Sample.java
trunk/fb-contrib/samples/ISB_Sample.java
trunk/fb-contrib/samples/ITC_Sample.java
trunk/fb-contrib/samples/ITU_Sample.java
trunk/fb-contrib/samples/JPAI_Sample.java
trunk/fb-contrib/samples/JVR_Sample.java
trunk/fb-contrib/samples/JXI_Sample.java
trunk/fb-contrib/samples/LEST_Sample.java
trunk/fb-contrib/samples/LGO_Sample.java
trunk/fb-contrib/samples/LII_Sample.java
trunk/fb-contrib/samples/LO_Sample.java
trunk/fb-contrib/samples/LSC_Sample.java
trunk/fb-contrib/samples/LSYC_Sample.java
trunk/fb-contrib/samples/MAC_Sample.java
trunk/fb-contrib/samples/MDM_Sample.java
trunk/fb-contrib/samples/MOM_Sample.java
trunk/fb-contrib/samples/MRC_Sample.java
trunk/fb-contrib/samples/MTA_Sample.java
trunk/fb-contrib/samples/MUC_Sample.java
trunk/fb-contrib/samples/NAB_Sample.java
trunk/fb-contrib/samples/NCMU_Sample.java
trunk/fb-contrib/samples/NCS_Sample.java
trunk/fb-contrib/samples/NFF_Sample.java
trunk/fb-contrib/samples/NIR_Sample.java
trunk/fb-contrib/samples/NMCS_Sample.java
trunk/fb-contrib/samples/NOS_Sample.java
trunk/fb-contrib/samples/NPMC_Sample.java
trunk/fb-contrib/samples/NRTL_Sample.java
trunk/fb-contrib/samples/NSE_Sample.java
trunk/fb-contrib/samples/OCP_Sample.java
trunk/fb-contrib/samples/OC_Sample.java
trunk/fb-contrib/samples/ODN_Sample.java
trunk/fb-contrib/samples/OPM_Sample.java
trunk/fb-contrib/samples/PCAIL_Sample.java
trunk/fb-contrib/samples/PCOA_Sample.java
trunk/fb-contrib/samples/PDP_Sample.java
trunk/fb-contrib/samples/PIS_Sample.java
trunk/fb-contrib/samples/PL_Sample.java
trunk/fb-contrib/samples/PMB_Sample.java
trunk/fb-contrib/samples/PME_Sample.java
trunk/fb-contrib/samples/PRMC_Sample.java
trunk/fb-contrib/samples/PSC_Sample.java
trunk/fb-contrib/samples/PUS_Sample.java
trunk/fb-contrib/samples/ROOM_Sample.java
trunk/fb-contrib/samples/S508C_Sample.java
trunk/fb-contrib/samples/SACM_Sample.java
trunk/fb-contrib/samples/SCA_Sample.java
trunk/fb-contrib/samples/SCII_Sample.java
trunk/fb-contrib/samples/SCI_Sample.java
trunk/fb-contrib/samples/SCRV_Sample.java
trunk/fb-contrib/samples/SCR_Sample.java
trunk/fb-contrib/samples/SCSS_Sample.java
trunk/fb-contrib/samples/SEC_Sample.java
trunk/fb-contrib/samples/SEO_Sample.java
trunk/fb-contrib/samples/SGSU_Sample.java
trunk/fb-contrib/samples/SG_Sample.java
trunk/fb-contrib/samples/SIL_Sample.java
trunk/fb-contrib/samples/SJVU_Sample.java
trunk/fb-contrib/samples/SLS_Sample.java
trunk/fb-contrib/samples/SMII_Sample.java
trunk/fb-contrib/samples/SNG_Sample.java
trunk/fb-contrib/samples/SPP_Sample.java
trunk/fb-contrib/samples/STB_Sample.java
trunk/fb-contrib/samples/STS_Sample.java
trunk/fb-contrib/samples/STT_Sample.java
trunk/fb-contrib/samples/SUA_Sample.java
trunk/fb-contrib/samples/SWCO_Sample.java
trunk/fb-contrib/samples/TBP_Sample.java
trunk/fb-contrib/samples/TR_Sample.java
trunk/fb-contrib/samples/UAA_Sample.java
trunk/fb-contrib/samples/UCC_Sample.java
trunk/fb-contrib/samples/UCPM_Sample.java
trunk/fb-contrib/samples/UEC_Sample.java
trunk/fb-contrib/samples/UMTP_Sample.java
trunk/fb-contrib/samples/UNNC_Sample.java
trunk/fb-contrib/samples/UP_Sample.java
trunk/fb-contrib/samples/URV_Sample.java
trunk/fb-contrib/samples/USBR_Sample.java
trunk/fb-contrib/samples/USS_Sample.java
trunk/fb-contrib/samples/UTAO_Sample.java
trunk/fb-contrib/samples/UTA_Sample.java
trunk/fb-contrib/samples/UVA_Sample.java
trunk/fb-contrib/samples/WEM_Sample.java
trunk/fb-contrib/samples/WI_Sample.java
trunk/fb-contrib/samples/WOC_Sample.java
trunk/fb-contrib/samples/samples-bugs.xml
trunk/fb-contrib/samples/samples.fbp
trunk/fb-contrib/src/com/
Property Changed:
----------------
trunk/fb-contrib/src/main/java/com/mebigfatguy/fbcontrib/FBContrib.java
trunk/fb-contrib/src/main/java/com/mebigfatguy/fbcontrib/package.html
Copied: trunk/fb-contrib/etc/samples.fbp (from rev 1800, trunk/fb-contrib/samples/samples.fbp)
===================================================================
--- trunk/fb-contrib/etc/samples.fbp (rev 0)
+++ trunk/fb-contrib/etc/samples.fbp 2016-11-18 03:30:45 UTC (rev 1803)
@@ -0,0 +1,24 @@
+<Project projectName="sample">
+ <Jar>./././../target/classes/samples</Jar>
+ <AuxClasspathEntry>./././../lib/backport-util-concurrent-3.1.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/commons-collections-3.2.1.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/javax.servlet-api-3.1.0.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/javax.servlet.jsp-api-2.3.1.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/log4j-1.2.17.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/commons-lang3-3.3.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/slf4j-api-1.7.7.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/guava-17.0.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/httpclient-4.3.4.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/httpclient-cache-4.3.4.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/httpcore-4.3.2.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/commons-codec-1.6.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/commons-io-1.3.2.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/junit-4.12.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/testng-6.9.6.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/jsr311-api-1.1.1.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./././../lib/javax.persistence-2.1.1.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>././../lib/mockito-all-2.0.2-beta.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>./../lib/asm-debug-all-5.0.2.jar</AuxClasspathEntry>
+ <AuxClasspathEntry>../lib/threetenbp-1.3.2.jar</AuxClasspathEntry>
+ <SrcDir>././././.</SrcDir>
+</Project>
Deleted: trunk/fb-contrib/samples/ABC_Sample.java
===================================================================
--- trunk/fb-contrib/samples/ABC_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/ABC_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,42 +0,0 @@
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.TreeMap;
-
-public class ABC_Sample {
- public Map<String[], String> testMaps(String[] key, String value) {
- Map<String[], String> m = new HashMap<String[], String>();
- m.put(key, value);
- return m;
- }
-
- public Set<String[]> testSets(String[] values) {
- Set<String[]> s = new HashSet<String[]>();
- s.add(values);
- return s;
- }
-
- public boolean testLists(List<String[]> l, String[] value) {
- return l.contains(value);
- }
-
- public static class UseComparator {
- private Map<byte[], byte[]> testComp;
-
- public UseComparator() {
- testComp = new TreeMap<byte[], byte[]>(new Comparator<byte[]>() {
- @Override
- public int compare(byte[] b1, byte[] b2) {
- return b1.length - b2.length;
- }
- });
- }
-
- public void testc() {
- testComp.put(new byte[5], new byte[3]);
- }
- }
-}
Deleted: trunk/fb-contrib/samples/ACEM_Sample.java
===================================================================
--- trunk/fb-contrib/samples/ACEM_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/ACEM_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,19 +0,0 @@
-
-public abstract class ACEM_Sample implements Foo {
- public void test() {
- }
-
- public int test1() {
- throw new UnsupportedOperationException("Not implemented");
- }
-
- @Override
- public void doFPFoo() {
- }
-
-
-}
-
-interface Foo {
- void doFPFoo();
-}
\ No newline at end of file
Deleted: trunk/fb-contrib/samples/AFBR_Sample.java
===================================================================
--- trunk/fb-contrib/samples/AFBR_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/AFBR_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,57 +0,0 @@
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-@SuppressWarnings("all")
-public class AFBR_Sample {
- public int test1(boolean b) {
- try {
- int i = 0;
- } finally {
- if (b)
- return 0;
- int j = 0;
- }
- return 2;
- }
-
- public int test2() {
- try {
- return 0;
- } finally {
- throw new NullPointerException();
- }
- }
-
- public int test3() throws Exception {
- try {
- return 0;
- } finally {
- throw new Exception();
- }
- }
-
- public int test4() {
- try {
- throw new Exception();
- } catch (Exception e) {
- return 1;
- } finally {
- return 0;
- }
- }
-
- public int test5() throws IOException {
- InputStream is = null;
- try {
- is = new FileInputStream("test");
- return 1;
- } catch (IOException ioe) {
- System.out.println("error");
- } finally {
- if (is != null)
- is.close();
- }
- return 0;
- }
-}
\ No newline at end of file
Deleted: trunk/fb-contrib/samples/AIOB_Sample.java
===================================================================
--- trunk/fb-contrib/samples/AIOB_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/AIOB_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,66 +0,0 @@
-import java.util.List;
-
-public class AIOB_Sample {
- int[] fa = new int[4];
- int[] fb;
-
- public void testOutOfBounds() {
- int[] a = new int[4];
-
- a[4] = 2;
- fa[4] = 2;
- }
-
- public void testOutOfBoundsGuard() {
- int[] a = new int[4];
-
- if (a.length > 4) {
- a[4] = 2;
- }
- }
-
- public void testUnallocated() {
- int[] b = null;
-
- b[4] = 4;
- fb[4] = 4;
- }
-
- public int[] fpPlusPlusNotRecognized(List<String> l) {
- int size = 0;
-
- for (String s : l) {
- size++;
- }
-
- int[] data = new int[size];
-
- data[0] = 0;
- return data;
- }
-
- public void fpPostAllocate() {
- double[] da = null;
-
- for (int i = 0; i < 10; i++) {
- if ((i & 1) == 1) {
- da[0] = 0.0;
- }
-
- if (da == null)
- da = new double[10];
- }
- }
-
- public void fpPlusEquals(List<String> ss) {
- int size = 0;
-
- for (String s : ss) {
- size += s.length();
- }
-
- int[] a = new int[size];
-
- a[0] = 1;
- }
-}
Deleted: trunk/fb-contrib/samples/AOM_Sample.java
===================================================================
--- trunk/fb-contrib/samples/AOM_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/AOM_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,17 +0,0 @@
-class AOM_Super {
- public void test1() {
- test2();
- System.out.println("test");
- }
-
- private void test2() {
- System.out.println("test");
- }
-}
-
-public abstract class AOM_Sample extends AOM_Super {
- @Override
- public abstract void test1();
-
- public abstract void test2();
-}
Deleted: trunk/fb-contrib/samples/AWCBR_Sample.java
===================================================================
--- trunk/fb-contrib/samples/AWCBR_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/AWCBR_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,42 +0,0 @@
-import java.lang.reflect.Method;
-import java.util.HashSet;
-import java.util.Set;
-
-public class AWCBR_Sample {
- public void m(int[] v) {
- v[0]++;
- }
-
- public int testuninitedalloc(int i) {
- int[] data = new int[1];
- data[0] = i;
- m(data);
- i = data[0];
- return i;
- }
-
- public int testinitedalloc(int i) {
- int[] data = new int[] { i };
- m(data);
- i = data[0];
- return i;
- }
-
- public int testNoCall(int i) {
- // while silly don't report this, as there is no arg usage
- int[] data = new int[] { i };
- i = data[0];
- return i;
- }
-
- public boolean testFPInvoke(Method m) throws Exception {
-
- Set<String> s = new HashSet<String>();
- Object[] args = new Object[] { s };
- m.invoke(this, args);
-
- s = (Set<String>) args[0];
-
- return s.isEmpty();
- }
-}
Deleted: trunk/fb-contrib/samples/BAS_Sample.java
===================================================================
--- trunk/fb-contrib/samples/BAS_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/BAS_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,254 +0,0 @@
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.ForkJoinPool;
-import java.util.concurrent.Future;
-
-@SuppressWarnings("all")
-public class BAS_Sample {
- private final Map<String, String> m = new HashMap<>();
-
- private long value = 0;
- private Long stash = Long.valueOf(0);
-
- public void testIfScope(String s) {
- Object o = new Object();
- if (s.equals("Foo")) {
- s = o.toString();
- }
- }
-
- public String testFPForScope(String s) {
- Object o = new Object();
- while (s.length() > 0) {
- o = s.substring(0, 1);
- s = s.substring(1);
- }
- return s;
- }
-
- public String testFP2Scopes(String s) {
- Object o = new Object();
- if (s.equals("Boo")) {
- s = o.toString();
- } else if (s.equals("Hoo")) {
- s = o.toString();
- }
-
- return s;
- }
-
- public String test2InnerScopes(String s) {
- Object o = new Object();
- if (s != null) {
- if (s.equals("Boo")) {
- s = o.toString();
- } else if (s.equals("Hoo")) {
- s = o.toString();
- }
- }
-
- return s;
- }
-
- public String testFPLoopCond(List<String> in) {
- StringBuilder sb = new StringBuilder();
- for (String s : in) {
- sb.append(s);
- }
- return sb.toString();
- }
-
- public List<String> getList() {
- return null;
- }
-
- public String testSwitch(int a) {
- String v = "Test";
-
- switch (a) {
- case 1:
- v = "Testa";
- break;
-
- case 2:
- v = "Tesseract";
- break;
-
- case 3:
- v = "Testy";
- break;
-
- default:
- v = "Rossa";
- break;
- }
-
- return null;
- }
-
- public void testFPSync(Set<String> a, Set<String> b) {
- String c, d;
-
- synchronized (this) {
- c = a.iterator().next();
- d = b.iterator().next();
- }
-
- if (d.length() > 0) {
- d = c;
- }
- }
-
- public int testFPObjChange(Calendar c, boolean b) {
- int hour = c.get(Calendar.HOUR_OF_DAY);
- c.set(2000, Calendar.JANUARY, 1);
-
- if (b) {
- return hour;
- }
-
- return 0;
- }
-
- public void tstFPThisRefChange(long v, boolean b) {
- long oldValue = this.value;
- this.value = v;
-
- if (b) {
- if (oldValue < 0) {
- System.out.println("Negative");
- }
- }
- }
-
- public void tstFPRefChange(Holder h1, Holder h2, boolean b) {
-
- int h = h1.member;
- h1 = h2;
-
- if (b) {
- System.out.println(h);
- }
- }
-
- public void tstFPRefChangeThruMethodChain(Holder h1, Holder h2, boolean b) {
-
- String h = h1.toString().trim();
- h1 = h2;
-
- if (b) {
- System.out.println(h);
- }
- }
-
- public Long testFPRefNull(boolean b) {
-
- Long save = stash;
- stash = null;
-
- if (b) {
- return save;
- }
-
- return null;
-
- }
-
- public void testFPSrcOverwrite(int src, boolean b) {
- int d = src;
- src = 0;
-
- if (b) {
- System.out.println(d);
- }
- }
-
- public void testFPRiskies1(boolean b) {
- long start = System.currentTimeMillis();
-
- if (b) {
- long delta = System.currentTimeMillis() - start;
- System.out.println(delta);
- }
- }
-
- public String testFPIteratorNext(Collection<String> c, boolean b) {
- Iterator<String> it = c.iterator();
-
- String s = it.next();
-
- if (b) {
- if (s == null) {
- return "yay";
- }
- }
-
- return it.next();
- }
-
- public List<String> testFPSynchronized(String s, String p) {
- List<String> l = new ArrayList<>();
- String x = s;
- synchronized (s) {
- if (p != null) {
- l.add(p);
- return l;
- }
- }
-
- return null;
- }
-
- public void testFPNestedIfs(Map<String, String> x, int i, boolean b) {
-
- String s = x.get("hello");
-
- if (i == 0) {
- if (b) {
- System.out.println(s);
- }
- } else if (i == 1) {
- System.out.println(s);
- } else if (i == 2) {
- System.out.println(s);
- }
- }
-
- public boolean testFPFuture(boolean b) {
- ExecutorService s = new ForkJoinPool();
- Future f = s.submit(new Runnable() {
- @Override
- public void run() {
- }
- });
- if (b) {
- if (f.isDone()) {
- return true;
- }
- }
-
- return false;
- }
-
- public int testFPTwoCatches(List<Integer> x) throws Exception {
- String msg = "This is a test";
- try {
- return x.size() * x.get(0);
- } catch (NullPointerException e) {
- throw new Exception(msg + "NPE", e);
- } catch (IndexOutOfBoundsException e) {
- throw new Exception(msg + "IIOBE", e);
- }
- }
-
- static class Holder {
- int member;
- }
-}
Deleted: trunk/fb-contrib/samples/BED_Sample.java
===================================================================
--- trunk/fb-contrib/samples/BED_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/BED_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,120 +0,0 @@
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.sql.SQLException;
-import java.util.Hashtable;
-import java.util.zip.DataFormatException;
-
-import javax.naming.NamingException;
-import javax.naming.directory.DirContext;
-import javax.naming.directory.InitialDirContext;
-
-@SuppressWarnings("all")
-public class BED_Sample {
- IOException ioe;
-
- public BED_Sample() throws IOException {
-
- }
-
- public BED_Sample(String name) throws NamingException {
- Hashtable<String, String> env = new Hashtable<>();
- env.put("name", name);
- DirContext context = new InitialDirContext(env);
- }
-
- public void doesTheNasty() throws FileNotFoundException, IOException {
-
- }
-
- public void doesTheNasty2() throws IOException, FileNotFoundException {
-
- }
-
- public void fpJustAwful() throws IOException, Exception {
-
- }
-
- private void badThrow() throws SQLException {
-
- }
-
- public static void badStatic() throws DataFormatException {
-
- }
-
- public final void badFinal() throws ClassNotFoundException {
-
- }
-
- public static void doIt() throws SQLException, IOException {
- InputStream is = new FileInputStream("c:\\temp.txt");
- }
-
- public static void fp() throws Exception {
- InputStream is = new FileInputStream("c:\\temp.txt");
- }
-
- private void fpThrowField(boolean b) throws IOException {
- if (b) {
- throw ioe;
- } else {
- IOException e = ioe;
- throw ioe;
- }
- }
-
- static void fpJustThrowIt(boolean permissible, String message) throws IOException {
- IOException e = new FileNotFoundException(message);
- if (!permissible) {
- throw e;
- }
- }
-
- public Object iAmCreatingAnObject() {
- return new Object() {
- private byte[] iHaveToThrowAnException() throws IOException {
- return BED_Sample.this.iThrowAnException();
- }
- };
- }
-
- private byte[] iThrowAnException() throws IOException {
- File.createTempFile("foo", "bar");
- return "Test".getBytes("UTF-8");
- }
-
- private void issue92a() throws InterruptedException {
- System.out.println("test");
- }
-
- public static void issue92b() throws InterruptedException {
- System.out.println("test");
- }
-
- public static Process fpInterrupted(String command) throws IOException, InterruptedException {
-
- Object sync = new Object();
- Process p = Runtime.getRuntime().exec(command);
- synchronized (sync) {
- sync.wait();
- }
-
- return p;
- }
-
- static class FPAnonBase {
-
- FPAnonBase(InputStream is) throws IOException {
- int i = is.read();
- }
-
- public static FPAnonBase makeAnon(InputStream is) throws IOException {
- return new FPAnonBase(is) {
- };
- }
- }
-
-}
Deleted: trunk/fb-contrib/samples/BL_Sample.java
===================================================================
--- trunk/fb-contrib/samples/BL_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/BL_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,83 +0,0 @@
-import java.util.List;
-
-public class BL_Sample {
-
- public String testSimpleBurying() {
-
- List<String> details = getDetails();
- if (details != null) {
- StringBuilder sb = new StringBuilder();
-
- for (String d : details) {
- sb.append(d);
- }
-
- return sb.toString();
- }
-
- return null;
- }
-
- public boolean fpNonAbsoluteReturn(Throwable t) {
- if ((t != null) && (t.getCause() != null)) {
- Throwable cause = t.getCause();
- if (cause instanceof java.lang.Error) {
- return t instanceof OutOfMemoryError;
- }
- }
- return false;
- }
-
- public String fpNonReturnedIfChain(String name) {
- if ("<clinit>".equals(name)) {
- System.out.println("static initializer declared");
- } else {
- System.out.println("not allowed method declared: " + name);
- return "wow: " + name;
- }
- return null;
- }
-
- public String fpBuryingSwitch(String data) {
- switch (data) {
- case "a":
- return fpBuryingSwitch(data + "fe") + data;
- case "b":
- return fpBuryingSwitch(data + "fi") + data;
- case "c":
- return fpBuryingSwitch(data + "fo") + data;
- case "d":
- return fpBuryingSwitch(data + "fum") + data;
- }
- return "";
- }
-
- public String fpIfElseReturnChain(Object c) {
- if (c instanceof String) {
- return "S" + c.getClass().getName();
- } else if (c instanceof Integer) {
- return "I" + c.getClass().getName();
- } else if (c instanceof Double) {
- return "D" + c.getClass().getName();
- }
-
- return null;
- }
-
- public String fpIfElseTailReturnChain(Object c) {
- String s;
- if (c instanceof String) {
- s = "S" + c.getClass().getName();
- } else if (c instanceof Integer) {
- s = "I" + c.getClass().getName();
- } else if (c instanceof Double) {
- return "D" + c.getClass().getName();
- }
-
- return null;
- }
-
- private List<String> getDetails() {
- return null;
- }
-}
Deleted: trunk/fb-contrib/samples/BRPI_Sample.java
===================================================================
--- trunk/fb-contrib/samples/BRPI_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/BRPI_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,18 +0,0 @@
-
-import org.threeten.bp.LocalDate;
-
-import edu.emory.mathcs.backport.java.util.Collections;
-import edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap;
-import edu.emory.mathcs.backport.java.util.concurrent.Executors;
-
-public class BRPI_Sample {
- public void emory() {
- Collections.emptySet();
- Executors.newCachedThreadPool();
- new ConcurrentHashMap();
- }
-
- public void threeten() {
- LocalDate d = LocalDate.now();
- }
-}
Deleted: trunk/fb-contrib/samples/BSB_Sample.java
===================================================================
--- trunk/fb-contrib/samples/BSB_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/BSB_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,69 +0,0 @@
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-@SuppressWarnings("all")
-public class BSB_Sample {
- private Object lock = new Object();
- private Set<String> info = new HashSet<String>();
- private Map<String, Object> synchMap = Collections.synchronizedMap(new HashMap<String, Object>());
-
- public void testFieldBeginBloated(int i, int j) {
- synchronized (lock) {
- StringBuffer sb = new StringBuffer();
- sb.append("Test");
- sb.append(i);
- info.add(sb.toString());
- }
- }
-
- public void testLocalBeginBloated(int j) {
- Set<String> i = getInfo();
- synchronized (i) {
- StringBuffer sb = new StringBuffer();
- sb.append("Test");
- sb.append(j);
- i.add(sb.toString());
- }
- }
-
- public void testAliasedLocalBeginBloated(int j) {
- Set<String> i = getInfo();
- synchronized (info) {
- StringBuffer sb = new StringBuffer();
- sb.append("Test");
- sb.append(j);
- i.add(sb.toString());
- }
- }
-
- public void testBranchCutDown(int j) {
- Set<String> i = getInfo();
- synchronized (i) {
- StringBuffer sb = new StringBuffer();
- if (sb.length() > 0) {
- sb.append("Test");
- sb.append(j);
- i.add(sb.toString());
- }
- }
- }
-
- public Set<String> getInfo() {
- return info;
- }
-
- public void accessSyncMap() {
- Set keySet = synchMap.keySet();
- synchronized (synchMap) {
- for (Iterator it = keySet.iterator(); it.hasNext();) {
- String key = (String) it.next();
- Object obj = synchMap.get(key);
- }
- }
- }
-
-}
Deleted: trunk/fb-contrib/samples/CAAL_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CAAL_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CAAL_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,37 +0,0 @@
-import java.util.Arrays;
-import java.util.List;
-
-public class CAAL_Sample {
-
- public void testCAAL(int[] v) {
- List l = Arrays.asList(v);
- }
-
- public void testCAAL(char[] v) {
- List l = Arrays.asList(v);
- }
-
- public void testCAAL(byte[] v) {
- List l = Arrays.asList(v);
- }
-
- public void testCAAL(short[] v) {
- List l = Arrays.asList(v);
- }
-
- public void testCAAL(long[] v) {
- List l = Arrays.asList(v);
- }
-
- public void testCAAL(float[] v) {
- List l = Arrays.asList(v);
- }
-
- public void testCAAL(double[] v) {
- List l = Arrays.asList(v);
- }
-
- public void testCAAL(boolean[] v) {
- List l = Arrays.asList(v);
- }
-}
Deleted: trunk/fb-contrib/samples/CAO_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CAO_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CAO_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,42 +0,0 @@
-
-public class CAO_Sample {
- public void testci(Character c) {
- System.out.println("Character");
- }
-
- public void testci(int i) {
- System.out.println("int");
- }
-
- public void testcj(Character c) {
- System.out.println("Character");
- }
-
- public void testcj(long l) {
- System.out.println("long");
- }
-
- public void testcd(Character c) {
- System.out.println("Character");
- }
-
- public void testcd(double d) {
- System.out.println("double");
- }
-
- public void testcf(Character c) {
- System.out.println("Character");
- }
-
- public void testcf(float f) {
- System.out.println("float");
- }
-
- public static void main(String[] args) {
- CAO_Sample s = new CAO_Sample();
- s.testci('a');
- s.testcj('a');
- s.testcd('a');
- s.testcf('a');
- }
-}
\ No newline at end of file
Deleted: trunk/fb-contrib/samples/CBC_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CBC_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CBC_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,47 +0,0 @@
-
-public class CBC_Sample {
-
- private static final Integer ONE = Integer.valueOf(1);
- private static final Integer TWO = Integer.valueOf(2);
- private static final Integer THREE = Integer.valueOf(3);
-
- enum Giant {
- Fee, Fi, Fo, Fum
- };
-
- public void testCBCStrings(String x) {
- if (x.equals("foo") || x.equals("bar") || x.equals("baz")) {
- System.out.println("yup");
- }
- }
-
- public void testCBCClass(Class<?> x) {
- if (x.equals(String.class) || x.equals(Integer.class) || x.equals(Long.class)) {
- System.out.println("yup");
- }
- }
-
- public void testCBCEnum(Giant x) {
- if (x.equals(Giant.Fee) || x.equals(Giant.Fi) || x.equals(Giant.Fo) || x.equals(Giant.Fum)) {
- System.out.println("yup");
- }
- }
-
- public void testCBCEnumDoubleEquals(Giant x) {
- if ((x == Giant.Fee) || (x == Giant.Fi) || (x == Giant.Fo) || (x == Giant.Fum)) {
- System.out.println("yup");
- }
- }
-
- public void testCBCInteger(Integer x) {
- if (x.equals(ONE) || x.equals(TWO) || x.equals(THREE)) {
- System.out.println("yup");
- }
- }
-
- public void testCBCPrimitiveInt(int x) {
- if ((x == 1) || (x == 2) || (x == 3)) {
- System.out.println("yup");
- }
- }
-}
Deleted: trunk/fb-contrib/samples/CBX_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CBX_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CBX_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,9 +0,0 @@
-public class CBX_Sample {
- public String testBuildXML(int val, String info) {
- StringBuffer sb = new StringBuffer();
- sb.append("<sample>");
- sb.append("<test name='" + val + "'>" + info + "</test>");
- sb.append("</sample>");
- return sb.toString();
- }
-}
Deleted: trunk/fb-contrib/samples/CCI_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CCI_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CCI_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,21 +0,0 @@
-import java.util.Collections;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-
-public class CCI_Sample {
-
- private Map<String, Set<String>> map = new ConcurrentHashMap<>();
-
- public void update(String key, String value) {
-
- Set<String> values = map.get(key);
-
- if (values == null) {
- values = Collections.<String> newSetFromMap(new ConcurrentHashMap<String, Boolean>());
- map.put(key, values);
- }
-
- values.add(value);
- }
-}
Deleted: trunk/fb-contrib/samples/CCNE_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CCNE_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CCNE_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,14 +0,0 @@
-public class CCNE_Sample {
- public void compareClassEquals() {
- Object o = new CCNE_Sample();
- Object p = new CCNE_Sample();
- System.out.println(o.getClass().getName().equals(p.getClass().getName()));
- }
-
- public void fpCompareAgainstString(String name) {
- Object o = new CCNE_Sample();
-
- if (o.getClass().getName().equals(name))
- System.out.println("booya");
- }
-}
Deleted: trunk/fb-contrib/samples/CEBE_EqualsToEqualsSample.java
===================================================================
--- trunk/fb-contrib/samples/CEBE_EqualsToEqualsSample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CEBE_EqualsToEqualsSample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,30 +0,0 @@
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-
-public class CEBE_EqualsToEqualsSample {
- public final String name;
- public final int age;
-
- CEBE_EqualsToEqualsSample(String name, int age) {
- this.name = name;
- this.age = age;
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(name).append(age).toHashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- CEBE_EqualsToEqualsSample other = (CEBE_EqualsToEqualsSample) obj;
- return new EqualsBuilder().append(this.name, other.name).append(this.age, other.age).equals(obj);
- }
-
-}
Deleted: trunk/fb-contrib/samples/CE_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CE_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CE_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,37 +0,0 @@
-
-public class CE_Sample {
- public void test() {
- Envy e = new Envy();
- e.a();
- e.b();
- test2();
- e.c();
- e.d();
- e.e();
- e.f();
- }
-
- public void test2() {
-
- }
-}
-
-class Envy {
- public void a() {
- }
-
- public void b() {
- }
-
- public void c() {
- }
-
- public void d() {
- }
-
- public void e() {
- }
-
- public void f() {
- }
-}
Deleted: trunk/fb-contrib/samples/CFS_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CFS_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CFS_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,16 +0,0 @@
-import java.util.Date;
-
-public class CFS_Sample {
- @SuppressWarnings("deprecation")
- public Date getNextDate(Date d) {
- d.setHours(0);
- return d;
- }
-
- @SuppressWarnings("deprecation")
- public Date getNextDateFP(Date d) {
- d = (Date) d.clone();
- d.setHours(0);
- return d;
- }
-}
Deleted: trunk/fb-contrib/samples/CHBH_HashcodeToHashcodeSample.java
===================================================================
--- trunk/fb-contrib/samples/CHBH_HashcodeToHashcodeSample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CHBH_HashcodeToHashcodeSample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,29 +0,0 @@
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-
-public class CHBH_HashcodeToHashcodeSample {
- public final String name;
- public final int age;
-
- CHBH_HashcodeToHashcodeSample(String name, int age) {
- this.name = name;
- this.age = age;
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(name).append(age).hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- CHBH_HashcodeToHashcodeSample other = (CHBH_HashcodeToHashcodeSample) obj;
- return new EqualsBuilder().append(this.name, other.name).append(this.age, other.age).isEquals();
- }
-}
Deleted: trunk/fb-contrib/samples/CLI_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CLI_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CLI_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,37 +0,0 @@
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Method;
-
-@SuppressWarnings("all")
-public class CLI_Sample {
- public String test1(String[] sa) {
- String result = "";
- for (String element : sa)
- result += sa[0];
- return result;
- }
-
- public String test2(String[] sa) {
- String name = sa[0];
- String address = sa[1];
- String ss = sa[2];
- return name + address + ss;
- }
-
- public String testFPSplit(String s) {
- String[] parts = s.split(",");
- String a = parts[0];
- String b = parts[1];
- String c = parts[2];
- return c + b + a;
- }
-
- class FPHander implements InvocationHandler {
- public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
- if (args[2] == null) {
- return null;
- }
-
- return String.valueOf(args[0]) + String.valueOf(args[1]);
- }
- }
-}
Deleted: trunk/fb-contrib/samples/CNC_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CNC_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CNC_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,33 +0,0 @@
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-public class CNC_Sample {
- // tag CNC_COLLECTION_NAMING_CONFUSION
- Map<String, String> argList;
- // tag CNC_COLLECTION_NAMING_CONFUSION
- Set<Integer> targetMap;
- // tag CNC_COLLECTION_NAMING_CONFUSION
- List<Double> bernoulliSet;
-
- // tag 3xCNC_COLLECTION_NAMING_CONFUSION
- public void testCNC(Map<String, String> argSet, Set<String> nameList, List<String> nameMap) {
-
- nameList.addAll(transferData(nameMap));
- }
-
- private Set<String> transferData(List<String> oldList) {
- if (oldList.isEmpty()) {
- return Collections.emptySet();
- }
- // tag CNC_COLLECTION_NAMING_CONFUSION
- Set<String> newList = new HashSet<>();
- for (String s : oldList) {
- newList.add(s);
- }
- return newList;
-
- }
-}
Deleted: trunk/fb-contrib/samples/COM_Sample.java
===================================================================
--- trunk/fb-contrib/samples/COM_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/COM_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,91 +0,0 @@
-import java.util.HashSet;
-import java.util.Set;
-
-public class COM_Sample {
-
- public void test1() {
- }
-
- public String test2(int i) {
- return String.valueOf(i);
- }
-
- public Set<String> test3(String a, String b, String c) {
- Set<String> ss = new HashSet<String>();
- ss.add(a);
- ss.add(b);
- ss.add(c);
- return ss;
- }
-
- public boolean test4(int w, double x, String y, boolean z) {
- return z;
- }
-
- protected void fpEnhanceAccess() {
- }
-
- public static class Derived extends COM_Sample {
- @Override
- public void test1() {
- }
-
- @Override
- public Set<String> test3(String a, String b, String c) {
- Set<String> ss = new HashSet<String>();
- ss.add(a);
- ss.add(b);
- ss.add(c);
- return ss;
- }
-
- @Override
- public String test2(int i) {
- return String.valueOf(i);
- }
-
- @Override
- public boolean test4(int w, double x, String y, boolean z) {
- return super.test4(w, x, y, z);
- }
-
- @Override
- public void fpEnhanceAccess() {
- }
- }
-}
-
-interface Inf {
- void m1();
-
- void m2();
-}
-
-abstract class c1 implements Inf {
- @Override
- public void m1() {
- }
-}
-
-abstract class c2 extends c1 {
- @Override
- public void m2() {
- }
-}
-
-abstract class s1 {
- public static final String FOO = "foo";
-
- public String getFoo() {
- return FOO;
- }
-}
-
-abstract class s2 extends s1 {
- public static final String FOO = "foo2";
-
- @Override
- public String getFoo() {
- return FOO;
- }
-}
Deleted: trunk/fb-contrib/samples/CRF_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CRF_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CRF_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,26 +0,0 @@
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URISyntaxException;
-import java.net.URL;
-
-public class CRF_Sample {
-
- public long testFileFromCPURL() throws URISyntaxException {
-
- URL u = CRF_Sample.class.getResource("/CRF_Sample.class");
- File f = new File(u.toURI());
- return f.length();
- }
-
- public long testFileFromCPURL2() {
- URL u = CRF_Sample.class.getResource("/CRF_Sample.class");
- File f = new File(u.getFile());
- return f.length();
- }
-
- public long testFileFromCPURL3() throws MalformedURLException {
- URL u = new URL("http://www.google.com");
- File f = new File(u.getFile());
- return f.length();
- }
-}
Deleted: trunk/fb-contrib/samples/CSBTS_StringToStringSample.java
===================================================================
--- trunk/fb-contrib/samples/CSBTS_StringToStringSample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CSBTS_StringToStringSample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,54 +0,0 @@
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
-public class CSBTS_StringToStringSample {
- static class Person {
- String name;
- int age;
-
- Person(String name, int age) {
- this.name = name;
- this.age = age;
- }
-
- @Override
- public String toString() {
- // INCORRECT USAGE : The same as invoking Object.toString()
- // return new ToStringBuilder(this).toString();
- // Consider using for non final classes to support a
- // string representation for derived types
- // return ToStringBuilder.reflectionToString(this);
- // Use for final classes most efficient solution
- return new ToStringBuilder(this).append("name", name).append("age", age).toString();
- }
- }
-
- private enum SEX {
- Male, Female;
- }
-
- public final static class GenderPerson extends Person {
- private SEX sex;
-
- GenderPerson(String name, int age, SEX sex) {
- super(name, age);
- this.sex = sex;
- }
- }
-
- public static void main(String[] args) {
- Person p = new Person("John Doe", 2);
- ToStringBuilder x = new ToStringBuilder(p);
- ToStringBuilder y = new ToStringBuilder(p);
- // INCORRECT USAGE : The same as invoking Object.toString
- System.out.println("P " + new ToStringBuilder(p).toString());
- // Consider using for non final classes to support a string
- // representation for derived types
- System.out.println("P " + ToStringBuilder.reflectionToString(p));
- GenderPerson p2 = new GenderPerson("Jane Doe", 2, SEX.Female);
- System.out.println("GP " + new ToStringBuilder(p2).append("name", p2.name).append("age", p2.age).append("sex", p2.sex).toString());
- // Y now has an append
- y.append("name", p.name);
- System.out.println("P - Once Again " + y.toString());
- System.out.println("P - Again " + x.toString());
- }
-}
Deleted: trunk/fb-contrib/samples/CSI_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CSI_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CSI_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,85 +0,0 @@
-import java.beans.XMLEncoder;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.io.Reader;
-import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-import java.nio.channels.Channels;
-import java.nio.charset.StandardCharsets;
-import java.util.Scanner;
-import java.util.logging.MemoryHandler;
-import java.util.logging.StreamHandler;
-
-public class CSI_Sample {
-
- private Scanner scan;
-
- public void testReaderCS(String fileName) throws UnsupportedEncodingException {
-
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET
- try (Reader r = new InputStreamReader(new FileInputStream(fileName), "UTF-8")) {
- char[] c = new char[1000];
- r.read(c);
- } catch (IOException e) {
- }
-
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET
- byte[] bytes = "test".getBytes("UTF-8");
-
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET
- String oddlyConstructedString = new String(bytes, "US-ASCII");
-
- // no tag
- oddlyConstructedString.getBytes(StandardCharsets.UTF_16);
-
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET
- oddlyConstructedString = new String(bytes, 0, 10, "UTF-16");
- }
-
- public String testUnknownEncoding(String url) throws UnsupportedEncodingException {
- // tag CSI_CHAR_SET_ISSUES_UNKNOWN_ENCODING
- return URLEncoder.encode(url, "FOO");
- }
-
- public void testLowerCaseEncoding(String fileName) throws UnsupportedEncodingException {
- try (Reader r = new InputStreamReader(new FileInputStream(fileName), "utf-8")) {
- char[] c = new char[1000];
- r.read(c);
- } catch (IOException e) {
- }
- }
-
- @SuppressWarnings("resource")
- public void testUseConstants(File f) throws UnsupportedEncodingException, FileNotFoundException {
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- try (PrintWriter pw = new PrintWriter(f, "UTF-8")) {
- pw.println("Hello world");
- }
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- try (Scanner s = new Scanner(f, "UTF-8")) {
- System.out.println(s.nextLine());
- }
-
- if (scan == null) {
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- scan = new Scanner(new FileInputStream(f), "UTF-8");
- scan.close();
- }
-
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- XMLEncoder foo = new XMLEncoder(null, "UTF-8", true, 0);
- foo.close();
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- new MemoryHandler().setEncoding("UTF-16");
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- new StreamHandler().setEncoding("UTF-16BE");
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- Channels.newReader(null, "UTF-8");
- // tag CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME
- Channels.newWriter(null, "UTF-8");
- }
-}
Deleted: trunk/fb-contrib/samples/CTU_Sample.java
===================================================================
--- trunk/fb-contrib/samples/CTU_Sample.java 2016-11-18 03:24:22 UTC (rev 1802)
+++ trunk/fb-contrib/samples/CTU_Sample.java 2016-11-18 03:30:45 UTC (rev 1803)
@@ -1,25 +0,0 @@
-import java.util.concurrent.TimeUnit;
-
-public class CTU_Sample {
-
- public long simpleMillisAndNanos() {
- long millis = System.currentTimeMillis();
- long nanos = System.nanoTime();
-
- return millis + nanos;
- }
-
- public long badUseOfConvert() {
- long secs = TimeUnit.SECONDS.convert(1000, TimeUnit.MILLISECONDS);
- long millis = System.currentTimeMillis();
-
- return secs + millis;
- }
-
- public long fpHandConversions() {
- long millis = System.currentTimeMill...
[truncated message content] |