MariusVolkhart / MariusVolkhart/squiggle-sql

Use singleton for Parameter

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
com.truemesh.squiggle.Parameter should have a method getInstance() that would
always return the same Parameter instance, so that we don't have to create a
new one everytime we use it.

Since parameter is stateless, there won't be a problem in sharing the instance.

Attached is the simple path to Parameter.java to achieve this.
```

Original issue reported on code.google.com by `brunoabdon` on 5 Aug 2010 at 8:28

Attachments:
- [diff-Parameter.java](https://storage.googleapis.com/google-code-attachments/squiggle-sql/issue-14/comment-0/diff-Parameter.java)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with com.truemesh.squiggle.Parameter in Parameter.java and review the attached diff-Parameter.java. Confirm the class is stateless and determine how callers currently create it. Done means getInstance() consistently returns the same Parameter instance without breaking existing usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.