google / google/gson

Don't call setAccessible(true) unless necessary

Open
#344 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

```
Calling setAccessible() is not necessary for public methods. And it fails for
Applets. We shouldn't be calling this method unless necessary.

http://groups.google.com/group/google-gson/browse_thread/thread/81b22381038fee91
/67360feb039533f7?show_docid=67360feb039533f7
```

Original issue reported on code.google.com by `limpbizkit` on 10 Jul 2011 at 8:06

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.