File tree Expand file tree Collapse file tree
src/main/java/org/sourcegraph Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # ## Java template
2+ # Compiled class file
3+ * .class
4+
5+ # Log file
6+ * .log
7+
8+ # BlueJ files
9+ * .ctxt
10+
11+ # Mobile Tools for Java (J2ME)
12+ .mtj.tmp /
13+
14+ # Package Files #
15+ * .jar
16+ * .war
17+ * .nar
18+ * .ear
19+ * .zip
20+ * .tar.gz
21+ * .rar
22+
23+ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
24+ hs_err_pid *
25+
26+ .idea
27+ * .iml
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <modelVersion >4.0.0</modelVersion >
6+
7+ <groupId >org.sourcegraph</groupId >
8+ <artifactId >java-lib</artifactId >
9+ <version >1.0.0</version >
10+
11+ <properties >
12+ <maven .compiler.source>8</maven .compiler.source>
13+ <maven .compiler.target>8</maven .compiler.target>
14+ </properties >
15+
16+ <dependencies >
17+ <dependency >
18+ <groupId >org.projectlombok</groupId >
19+ <artifactId >lombok</artifactId >
20+ <version >1.18.24</version >
21+ <scope >provided</scope >
22+ </dependency >
23+ </dependencies >
24+
25+ </project >
Original file line number Diff line number Diff line change 1+ package org .sourcegraph ;
2+
3+ import lombok .AllArgsConstructor ;
4+ import lombok .Data ;
5+ import lombok .NoArgsConstructor ;
6+
7+ @ Data
8+ @ AllArgsConstructor
9+ @ NoArgsConstructor
10+ public class Record {
11+ private int id ;
12+ private String name ;
13+ private String location ;
14+ }
Original file line number Diff line number Diff line change 1+ package org .sourcegraph ;
2+
3+ public class SourcegraphService {
4+ public Record getRecordById (final int id ) {
5+ return new Record (id , "some name" , "some location" );
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments