Skip to main content
deleted 7 characters in body
Source Link
Brent Bradburn
  • 55.7k
  • 19
  • 164
  • 191

I have a local class...

public class Outer {
    public void wrapper() {
        public class Local {
        }
    }
}

and I have a test that needs to reference the local class...

Outer.wrapper.Local.class ## this doesn't seem to work

How can I reference the local class?

I have a local class...

public class Outer {
    public void wrapper() {
        public class Local {
        }
    }
}

and I have a test that needs to reference the local class...

Outer.wrapper.Local.class ## this doesn't seem to work

How can I reference the local class?

I have a local class...

public class Outer {
    public void wrapper() {
        class Local {
        }
    }
}

and I have a test that needs to reference the local class...

Outer.wrapper.Local.class ## this doesn't seem to work

How can I reference the local class?

Source Link
Brent Bradburn
  • 55.7k
  • 19
  • 164
  • 191

How to reference local class

I have a local class...

public class Outer {
    public void wrapper() {
        public class Local {
        }
    }
}

and I have a test that needs to reference the local class...

Outer.wrapper.Local.class ## this doesn't seem to work

How can I reference the local class?