aboutsummaryrefslogtreecommitdiff
path: root/src/test/test4/JIRA212.java
blob: 4c532d00b69cbd69e6a3e7894cebdefa88f024d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package test4;

public class JIRA212 {
    public Long id;
    public String name;
    public void test() {
        JIRA212 object = new JIRA212();

        object.name = "test";  // get or set string value

        try { // in try
            object.id = 100L;  // get or set long value
            String name = object.name;  // get or set string value
        } catch (Throwable t) {
            t.printStackTrace();
        }
    }

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
}