Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Use of MapMaker in DirtyStateManager
Use of MapMaker in DirtyStateManager [message #1783420] Tue, 13 March 2018 00:31
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 134
Registered: July 2009
Location: Canada
Senior Member
Hi,

The class "org.eclipse.xtext.ui.editor.DirtyStateManager" makes use of Guava API "new MapMaker().makeMap()" in its constructor. From the face of it, the implementation of DirtyStateManager hardly takes advantage of any of its features (https://goo.gl/8d39r1).

Just wondering why a MapMaker was used here? Wouldn't it be sufficient to use "new ConcurrentHashMap<URI, IDirtyResource()>"?

Please comment. Tx.



Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:Working with multiple installed versions of your language plugin
Next Topic:How to resolve Xtext dependency to com.google.inject in a multi platform build with maven
Goto Forum:
  


Current Time: Wed Sep 19 19:08:34 GMT 2018

Powered by FUDForum. Page generated in 0.01942 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top