aboutsummaryrefslogtreecommitdiffstats
path: root/docs/sandbox/common/com/company/lib/Factory.java
blob: 3abb207c9020d2044f4246a386e2e66c6c4cbfcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.company.lib;

public class Factory {

    public static Thread makeThread(Runnable runnable, String name) {
        class MyThread extends Thread {
            MyThread(Runnable runnable, String name) {
                super(runnable, name);
            }
        }
        return new MyThread(runnable, name);
    }
}