Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c656dd8

Browse files
committed
Update Java基础知识疑难点.md
1 parent cc5f281 commit c656dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/java/basis/Java基础知识疑难点.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Objects.equals(null,"SnailClimb");// false
2727
我们看一下`java.util.Objects#equals`的源码就知道原因了。
2828
```java
2929
public static boolean equals(Object a, Object b) {
30-
// 可以避免空指针异常。如果a==null的话此时a.equals(b)就不会得到执行,避免出现空指针异常。
30+
// 可以避免空指针异常。如果a=null的话此时a.equals(b)就不会得到执行,避免出现空指针异常。
3131
return (a == b) || (a != null && a.equals(b));
3232
}
3333
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /