Skip to content

Simplify SessionTable with ConcurrentHashMap for thread safety - #2

Open
LipiLee wants to merge 3 commits into
attdevsupport:masterfrom
LipiLee:master
Open

Simplify SessionTable with ConcurrentHashMap for thread safety#2
LipiLee wants to merge 3 commits into
attdevsupport:masterfrom
LipiLee:master

Conversation

@LipiLee

@LipiLeeLipiLee commented Jun 20, 2017

Copy link
Copy Markdown
  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

…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
@LipiLeeLipiLee changed the title Remove a duplicated INTERNET permission in AndroidManifest.xmlSimplify SessionTable with ConcurrentHashMap for thread safetyJun 20, 2017
Delete synchronized when handling a modified SessionTable and change some for loops to foreachs
@LipiLee

Copy link
Copy Markdown
Author

Please review this, @dn538j

@dn538j

Copy link
Copy Markdown
Collaborator

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

Sign up for freeto 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

@LipiLee@dn538j