Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify SessionTable with ConcurrentHashMap for thread safety #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LipiLee
Copy link

@LipiLee LipiLee commented Jun 20, 2017

  1. Simplify SessionTable with ConcurrentHashMap for thread safety
    Android recommends to use ConcurrentHashMap in place of HashTable for thread safe implementation(https://developer.android.com/reference/java/util/Hashtable.html).

  2. Remove a duplicated INTERNET permission as the build have gotten the below warning
    DataCollectorsClients/VpnCollector/app/src/main/AndroidManifest.xml:23:5-67 Warning:
    Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:23:5-67 duplicated with element declared at AndroidManifest.xml:11:5-67

LipiLee added 2 commits June 20, 2017 15:45
…below warning

DataCollectorsClients/VpnCollector/app/src/main/AndroidManifest.xml:23:5-67 Warning:
        Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:23:5-67 duplicated with element declared at AndroidManifest.xml:11:5-67
@LipiLee LipiLee changed the title Remove a duplicated INTERNET permission in AndroidManifest.xml Simplify SessionTable with ConcurrentHashMap for thread safety Jun 20, 2017
Delete synchronized when handling a modified SessionTable and change some for loops to foreachs
@LipiLee
Copy link
Author

LipiLee commented Jul 4, 2017

Please review this, @dn538j

@dn538j
Copy link
Collaborator

dn538j commented Jul 14, 2017

@LipiLee Sorry, I was away for a couple of days. Will complete the review soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants