Skip to content

Commit

Permalink
增加微信公众号二维码
Browse files Browse the repository at this point in the history
  • Loading branch information
diguage committed Dec 17, 2020
1 parent e588d21 commit 1bf7a27
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
= JDK & STL 源码分析计划

ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
endif::[]

为了学好数据结构以及相关算法,同时也为了更好地理解 JDK 的底层实现,计划对 JDK 集合类的源码做一个系统的阅读分析。

欢迎随时提交 PR 或 Issue。建了一个 Gitter 聊天室,点击图标加入: https://gitter.im/source-analysis/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge[image:https://badges.gitter.im/source-analysis/community.svg[]]。
Expand All @@ -17,6 +25,12 @@ WARNING: 本文档基于 *OpenJDK 11.0.6 2020-01-14 LTS* 的代码开展分析
| image:docs/images/alipay.png[title="支付宝", alt="支付宝", width="45%"] | image:docs/images/wxpay.png[title="微信", alt="微信", width="45%"]
|===

有些打赏的朋友希望可以加个好友,欢迎关注D瓜哥的微信公众号,这样就可以通过公众号的回复直接给我发信息。

image:docs/images/wx-jike-log.png[align="center",width=90%]

TIP: **公众号的微信号是: jike-log**。__因为众所周知的原因,有时图片加载不出来。如果图片加载不出来可以直接通过搜索微信号来查找我的公众号。__

=== 官网及版本库

本文档的版本库托管在 Github 上,另外单独发布。
Expand Down
Binary file added docs/images/wx-jike-log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion docs/preface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ WARNING: 本文档基于 *OpenJDK 11.0.6 2020-01-14 LTS* 的代码开展分析
| image:images/alipay.png[title="支付宝", alt="支付宝", width="45%"] | image:images/wxpay.png[title="微信", alt="微信", width="45%"]
|===

TIP: 想要联系方式的小伙伴,欢迎提交 Issue 留言。D瓜哥还建了一个 Gitter 聊天室,点击图标加入: https://gitter.im/source-analysis/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge[image:https://badges.gitter.im/source-analysis/community.svg[]],加入即可留言。(PS:留言不保证回复的时效性)
有些打赏的朋友希望可以加个好友,欢迎关注D瓜哥的微信公众号,这样就可以通过公众号的回复直接给我发信息。

image:images/wx-jike-log.png[{image_attr}]

== 官网及版本库

Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@
<source_attr>linenums,indent=0,subs="attributes,verbatim,quotes"</source_attr>
<java_src_attr>source%nowrap,java,{source_attr}</java_src_attr>
<html_src_attr>source%nowrap,html,{source_attr}</html_src_attr>
<diagram_attr>format=svg,align="center",width=100%</diagram_attr>
<image_attr>align="center",width=90%</image_attr>
<diagram_attr>format=svg,align="center",width=90%</diagram_attr>
</attributes>
</configuration>
<executions>
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/Calc.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
public class Calc {
public static int add(int a, int b) {
return a + b;
}

public static int sub(int a, int b) {
return a - b;
}
}
13 changes: 13 additions & 0 deletions src/test/java/CalcTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import org.junit.Assert;
import org.junit.Test;

import static org.junit.Assert.*;

public class CalcTest {
@Test
public void testAdd() {
int result = Calc.add(1, 3);
Assert.assertEquals(4, result);
// assertEquals(5, result);
}
}

0 comments on commit 1bf7a27

Please sign in to comment.