Skip to content

Instantly share code, notes, and snippets.

View ddnosh's full-sized avatar

VBear ddnosh

View GitHub Profile
@ddnosh
ddnosh / Java6.java
Created June 29, 2021 11:43 — forked from JakeWharton/Java6.java
A comparison between non-capturing and capturing expressions across Java 6, Java 8, Java 8 with Retrolambda, Kotlin with native function expressions, and Kotlin with Java SAM expression.
import java.util.Arrays;
class NonCapturing {
public static void main(String... args) {
run(new Runnable() {
@Override public void run() {
System.out.println("Hey!");
}
});
}
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<!-- 单个文件最大字符数 "/-->
<module name="FileLength">
<property name ="max" value ="5000" />
</module>
TextView tv
EditText et
WebView wv
ImageView iv
ScrollView sv
VideoView vv
MediaController mc
ListView lv
GridView gv
Gallery gly
@ddnosh
ddnosh / .gitignore
Last active September 9, 2019 02:17
ignore template
# Built application files
*.apk
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class