* BEEL-634 javassist dependency * BEEL-634 code for javassist article * BEEL-634 test refinement * BEEL-634 increment lib to newest version * add test that uses reflection to verify * add field * add bytecode to different class
18 lines
265 B
Java
18 lines
265 B
Java
package com.baeldung.javasisst;
|
|
|
|
|
|
public class Point {
|
|
public int x = 0;
|
|
public int y = 0;
|
|
|
|
public Point(int x, int y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
public void move(int x, int y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
}
|