X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FCell.java;h=eaaab6b7695c5a17b16d775545e0264df8a5df8c;hb=00fbfc382425d1f20a84cd8897919836cc6254ee;hp=d4d78ba3ab25b4446eaed222796a055e7fd82a94;hpb=e16dda65585466c8987bd1efd718431450a96605;p=fanfix.git diff --git a/src/jexer/bits/Cell.java b/src/jexer/bits/Cell.java index d4d78ba..eaaab6b 100644 --- a/src/jexer/bits/Cell.java +++ b/src/jexer/bits/Cell.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2016 Kevin Lamonte + * Copyright (C) 2017 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -101,8 +101,11 @@ public final class Cell extends CellAttributes { } Cell that = (Cell) rhs; - return (super.equals(rhs) - && (ch == that.ch)); + + if (ch == that.ch) { + return super.equals(rhs); + } + return false; } /** @@ -175,7 +178,7 @@ public final class Cell extends CellAttributes { */ @Override public String toString() { - return String.format("fore: %d back: %d bold: %s blink: %s ch %c", + return String.format("fore: %s back: %s bold: %s blink: %s ch %c", getForeColor(), getBackColor(), isBold(), isBlink(), ch); } }