diff --git a/src/main/java/com/mycompany/app/App.java b/src/main/java/com/mycompany/app/App.java index b08275ffdd..447afe3661 100644 --- a/src/main/java/com/mycompany/app/App.java +++ b/src/main/java/com/mycompany/app/App.java @@ -1,3 +1,25 @@ +/** +2 * COPYRIGHT: Comviva Technologies Pvt. Ltd. +3 * This software is the sole property of Comviva +4 * and is protected by copyright law and international +5 * treaty provisions. Unauthorized reproduction or +6 * redistribution of this program, or any portion of +7 * it may result in severe civil and criminal penalties +8 * and will be prosecuted to the maximum extent possible +9 * under the law. Comviva reserves all rights not +10 * expressly granted. You may not reverse engineer, decompile, +11 * or disassemble the software, except and only to the +12 * extent that such activity is expressly permitted +13 * by applicable law notwithstanding this limitation. +14 * THIS SOFTWARE IS PROVIDED TO YOU “AS IS” WITHOUT +15 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, +16 * INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES +17 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. +18 * YOU ASSUME THE ENTIRE RISK AS TO THE ACCURACY +19 * AND THE USE OF THIS SOFTWARE. Comviva SHALL NOT BE LIABLE FOR +20 * ANY DAMAGES WHATSOEVER ARISING OUT OF THE USE OF OR INABILITY TO +21 * USE THIS SOFTWARE, EVEN IF Comviva HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +22 **/ package com.mycompany.app; /** @@ -5,7 +27,6 @@ */ public class App { - private final String message = "Hello World!"; public App() {} @@ -17,34 +38,4 @@ public static void main(String[] args) { private final String getMessage() { return message; } - - private class S2259FalsePositive { - private enum Valid { - OK, NOT_OK; - } - - public String test(String s) { - Valid valid = Valid.OK; - if (s == null) { - valid = Valid.NOT_OK; - } - - if (valid == Valid.OK) { - return s.toLowerCase(); // FP - } - return ""; - } - - public String test2(String s) { - boolean valid = true; - if (s == null) { - valid = false; - } - - if (valid) { - return s.toLowerCase(); // No FP - } - return ""; - } - } }