Skip to content

Commit

Permalink
使用 “==” 比较两个相同的表达式 (EqualToSameExpression) alibaba#90
Browse files Browse the repository at this point in the history
  • Loading branch information
SONG WANG committed Apr 17, 2017
1 parent 3acf33c commit acef2d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static boolean equal(final Paint p1, final Paint p2) {
&& gp1.getPoint1().equals(gp2.getPoint1())
&& gp1.getPoint2().equals(gp2.getPoint2())
&& gp1.isCyclic() == gp2.isCyclic()
&& gp1.getTransparency() == gp1.getTransparency();
&& gp1.getTransparency() == gp2.getTransparency();
}
else {
result = p1.equals(p2);
Expand Down

0 comments on commit acef2d3

Please sign in to comment.