Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1022715 // reflection_isForbiddenMethod - is there another way?

JavaX fragment (include)

1  
sbool reflection_isForbiddenMethod(Method m) {
2  
  ret m.getDeclaringClass() == O.class
3  
    && eqOneOf(m.getName(), "finalize", "clone", "registerNatives");
4  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022715
Snippet name: reflection_isForbiddenMethod - is there another way?
Eternal ID of this version: #1022715/7
Text MD5: e48eef6b105172160c2ebce4d180297e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-01 04:56:42
Source code size: 159 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 404
Version history: 6 change(s)
Referenced in: [show references]