From 5ecbf451cb7a173d6925d392e6f92d6b4eb65b90 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 1 Nov 2015 22:36:17 +0100 Subject: [PATCH] Added license --- Dorkbox-Util/src/dorkbox/util/JavaFxUtil.java | 15 +++++++++++++++ Dorkbox-Util/src/dorkbox/util/MathUtil.java | 2 -- .../src/dorkbox/util/MersenneTwisterFast.java | 17 ++++++++++++++++- Dorkbox-Util/src/dorkbox/util/NetworkUtil.java | 18 +++++++++++++++--- Dorkbox-Util/src/dorkbox/util/ScreenUtil.java | 15 +++++++++++++++ 5 files changed, 61 insertions(+), 6 deletions(-) diff --git a/Dorkbox-Util/src/dorkbox/util/JavaFxUtil.java b/Dorkbox-Util/src/dorkbox/util/JavaFxUtil.java index 08d7530..174cefe 100644 --- a/Dorkbox-Util/src/dorkbox/util/JavaFxUtil.java +++ b/Dorkbox-Util/src/dorkbox/util/JavaFxUtil.java @@ -1,3 +1,18 @@ +/* + * Copyright 2015 dorkbox, llc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package dorkbox.util; import javafx.application.Platform; diff --git a/Dorkbox-Util/src/dorkbox/util/MathUtil.java b/Dorkbox-Util/src/dorkbox/util/MathUtil.java index 961fc10..f453f5e 100644 --- a/Dorkbox-Util/src/dorkbox/util/MathUtil.java +++ b/Dorkbox-Util/src/dorkbox/util/MathUtil.java @@ -21,8 +21,6 @@ package dorkbox.util; public class MathUtil { - // --- - private static final ThreadLocal random = new ThreadLocal(); /** diff --git a/Dorkbox-Util/src/dorkbox/util/MersenneTwisterFast.java b/Dorkbox-Util/src/dorkbox/util/MersenneTwisterFast.java index 5defad8..3f8477e 100644 --- a/Dorkbox-Util/src/dorkbox/util/MersenneTwisterFast.java +++ b/Dorkbox-Util/src/dorkbox/util/MersenneTwisterFast.java @@ -1,3 +1,18 @@ +/* + * Copyright 2015 dorkbox, llc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package dorkbox.util; import java.io.DataInputStream; @@ -1230,4 +1245,4 @@ public strictfp class MersenneTwisterFast implements Serializable, Cloneable { } while (bits - val + n - 1 < 0); return val; } -} \ No newline at end of file +} diff --git a/Dorkbox-Util/src/dorkbox/util/NetworkUtil.java b/Dorkbox-Util/src/dorkbox/util/NetworkUtil.java index 29c2700..6b92056 100644 --- a/Dorkbox-Util/src/dorkbox/util/NetworkUtil.java +++ b/Dorkbox-Util/src/dorkbox/util/NetworkUtil.java @@ -1,3 +1,18 @@ +/* + * Copyright 2015 dorkbox, llc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package dorkbox.util; import java.io.BufferedReader; @@ -7,9 +22,6 @@ import java.util.Enumeration; import java.util.regex.Matcher; import java.util.regex.Pattern; -/** - * - */ public final class NetworkUtil { diff --git a/Dorkbox-Util/src/dorkbox/util/ScreenUtil.java b/Dorkbox-Util/src/dorkbox/util/ScreenUtil.java index 8e9f0c9..11be2a6 100644 --- a/Dorkbox-Util/src/dorkbox/util/ScreenUtil.java +++ b/Dorkbox-Util/src/dorkbox/util/ScreenUtil.java @@ -1,3 +1,18 @@ +/* + * Copyright 2015 dorkbox, llc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package dorkbox.util; import java.awt.GraphicsConfiguration;