Buggy code:
public class OperaWebElement extends RemoteWebElement { protected final Logger logger = Logger . getLogger ( this . getClass ( ) . getName ( ) ) ; private final int objectId ; private final int runtimeId ; private final OperaDriver parent ; private final IOperaExec execService ; private final IEcmaScriptDebugger debugger ; private static final HashMap < Character , String > keysLookup = new HashMap < Character , String > ( ) ; public OperaWebElement ( OperaDriver parent , int objectId ) { } public final String callMethod ( String method ) { } private void executeMethod ( String script ) { } private Object evaluateMethod ( String script ) { } public void click ( int times ) { } public void click ( ) { } public void click ( int x , int y ) { } public void middleClick ( ) { } public WebElement findElement ( By by ) { } public List < WebElement > findElements ( By by ) { } public String getAttribute ( String attribute ) { } private boolean hasAttribute ( String attr ) { } public String getText ( ) { } public boolean isDisplayed ( ) { } public boolean isEnabled ( ) { } public boolean isSelected ( ) { } public void clear ( ) { } public void sendKeys ( CharSequence ... keysToSend ) { } private static String charToKeyName ( char c ) { } public void submit ( ) { } private static void sleep ( long ms ) { } public Point getLocation ( ) { } public Dimension getSize ( ) { } public String getImageHash ( ) { } public String getImageHash ( long timeout , String ... hashes ) { } public String saveScreenshot ( String filename ) { } public String saveScreenshot ( String filename , long timeout ) { } public String saveScreenshot ( String filename , long timeout , boolean includeImage , String ... hashes ) { } public ScreenShotReply saveScreenshot ( long timeout , String ... hashes ) { } @ SuppressWarnings ( "unused" ) public boolean containsColor ( OperaColors ... colors ) { } private Canvas buildCanvas ( ) { } public String getTagName ( ) { } public Point getLocationOnScreenOnceScrolledIntoView ( ) { } public int getObjectId ( ) { } public int getRuntimeId ( ) { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } @ Override public String toString ( ) { } private WebElement findSingleElement ( String using , String type ) { } protected WebElement findElement ( String by , String using ) { } protected List < WebElement > findElements ( String by , String using ) { } private List < WebElement > findMultipleElements ( String using , String type ) { } public WebElement findElementByName ( String using ) { } public List < WebElement > findElementsByName ( String using ) { } @ Override protected void finalize ( ) throws Throwable { } public Coordinates getCoordinates ( ) { } private Coordinates coordinates ; public String getCssValue ( String property ) { String value = callMethod ( ( ( ( ( "return<seq2seq4repair_space>" + ( OperaAtoms . GET_EFFECTIVE_STYLE ) ) + "(locator,<seq2seq4repair_space>'" ) + property ) + "')" ) ) ; <START_BUG> if ( property . contains ( "color" ) ) { <END_BUG> return new OperaColor ( value ) . getHex ( ) ; } return value ; } public WebDriver getWrappedDriver ( ) { } private OperaWebElement getParent ( ) { } private void assertElementDisplayed ( ) { } private void assertElementDisplayed ( String message ) { } private void assertElementEnabled ( ) { } private void assertElementEnabled ( String message ) { } private void assertElementNotStale ( ) { } No newline ; at end ; of file ; }

Fix:
if ( ( property . contains ( "color" ) ) && ( value . contains ( "rgb" ) ) ) {