Ignore:
Timestamp:
06/24/13 13:38:40 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • upgrade to Java 7
    • use try-multi-catch clauses
    • use try-with-resources were appropriate
  • configure FindBugs? (use mvn site and then navigate in browser to the report)
    • remove most bugs found
  • parametrize Dispatching environment (Dispatcher, RunAt?) to enforce more control on the place of closures actual call

CHANGELOG:
Rework FavouritesXMLFactory.

FindBugs?. Thread start.

FindBugs?. Minor change.

FindBugs?. Iterate over entrySet.

FindBugs?. Various.

FindBug?.

FindBug?. Encoding.

FindBug?. Final fields.

FindBug?.

Remove synchronization bug in ClientConnection?.

Experiments with findbugs.

Finish parametrization.

Make RunAt? an abstract class.

More changes in parametrization.

More changes in parametrizing dispatching.

Several changes to parametrize tasks.

Rename Runnable to RunAt?.

Add specific framsticks Runnable.

Add JSR305 (annotations).

Add findbugs reporting.

More improvements to ParamBuilder? wording.

Make FramsClass? accept also ParamBuilder?.

Change wording of ParamBuilder?.

Change wording of Request creation.

Use Java 7 exception catch syntax.

Add ScopeEnd? class.

Upgrade to Java 7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/core/LocalInstance.java

    r84 r85  
    1313import java.util.HashSet;
    1414import java.util.Set;
     15import com.framsticks.util.dispatching.RunAt;
    1516
    1617
     
    3334                                acceptSocket = new ServerSocket();
    3435                                acceptSocket.setReuseAddress(true);
    35                                 acceptThread = new Thread(name + "-accept");
     36                                acceptThread = new Thread<Accept>(name + "-accept").start();
    3637                                tryBind(accept);
    3738                        } catch (IOException e) {
     
    4344        protected final Set<InstanceClient> clients = new HashSet<InstanceClient>();
    4445        ServerSocket acceptSocket;
    45         Thread acceptThread;
     46
     47        public static class Accept {
     48        };
     49
     50        Thread<Accept> acceptThread;
    4651
    4752        protected void acceptNext() {
    48                 acceptThread.invokeLater(new Runnable() {
     53                acceptThread.invokeLater(new RunAt<Accept>() {
    4954                        @Override
    5055                        public void run() {
     
    5358                                        assert socket != null;
    5459                                        log.debug("accepted socket: " + socket.getInetAddress().getHostAddress());
    55                                         invokeLater(new Runnable() {
     60                                        invokeLater(new RunAt<LocalInstance>() {
    5661                                                @Override
    5762                                                public void run() {
     
    7075
    7176        public void tryBind(final Integer accept) {
    72                 acceptThread.invokeLater(new Runnable() {
     77                acceptThread.invokeLater(new RunAt<Accept>() {
    7378                        @Override
    7479                        public void run() {
Note: See TracChangeset for help on using the changeset viewer.