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

refactor: markers: avoid unnecessary static #952

Merged
merged 2 commits into from
Feb 10, 2024

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Feb 8, 2024

There are unnecessary static variable initialization and static functions. These break registering Markers as plugins.

Pull request type

  • Other (describe below)
    refactor

Which ticket is resolved?

What does this PR change?

  • avoid all Styles static reference in static initialization, because the reference should be happened after theme modules initialization.

Other information

Bring improvements from #951

@miurahr miurahr marked this pull request as ready for review February 8, 2024 23:32
@miurahr miurahr added this to the 6.1.0 (Require Java 11) milestone Feb 8, 2024
@miurahr
Copy link
Member Author

miurahr commented Feb 9, 2024

Need unit tests for these markers

There are unnecessary static variable initialization and static functions. These break registering Markers as plugins.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@miurahr miurahr force-pushed the topic/miurahr/marker/avoid-static-initialization branch from 332b97d to db82709 Compare February 10, 2024 05:22
@miurahr miurahr merged commit 3258f52 into master Feb 10, 2024
9 checks passed
@miurahr miurahr deleted the topic/miurahr/marker/avoid-static-initialization branch February 10, 2024 05:39
chelobaka pushed a commit to chelobaka/omegat that referenced this pull request Feb 10, 2024
* refactor: markers: avoid unnecessary static

There are unnecessary static variable initialization and static functions. These break registering Markers as plugins.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* refactor: initialize fields in constructor

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

---------

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant