/**
 * Copyright 2017 Keid
*/
package search;

import java.util.List;

/**
 * Liner search
 * 
 * @author Keid
 */
public class LinearSearch implements Search<Integer> {

    /*
     * (non-Javadoc)
     * 
     * @see search.Search#search(java.lang.Object, java.util.List)
     */
    @Override
    public int search(Integer item, List<Integer> list) {

        for (int searchedIndex = 0; searchedIndex < list.size(); searchedIndex++) {
            if (list.get(searchedIndex) == item) {
                return searchedIndex;
            }
        }

        // not found
        return -1;
    }

}

@@ -160,24 +160,70 @@
 Integer%3E %7B%0A%0A
+    private static final int NOT_FOUND = -1;%0A%0A
     /*%0A     
@@ -604,38 +604,24 @@
     
-// not found%0A        return -1
+return NOT_FOUND
 ;%0A  

Refactor value.