1 package org.apache.commons.javaflow.bytecode.transformation.rewrite;
2
3 import java.util.Properties;
4
5
6
7
8
9
10 public class NullVariableMethodFlow implements Runnable {
11
12 public void run() {
13 getLocalAddress(System.getProperties());
14 }
15
16 public static String getLocalAddress(Properties session) {
17 String x = null, y;
18
19
20
21
22
23 y = session.getProperty("a");
24 if (y == null) {
25 x = session.getProperty("b");
26 }
27
28 if (y == null)
29 y = x;
30
31 return y;
32 }
33 }