Skip to content

Commit 6271ecc

Browse files
authored
Remove redundant public modifier in PlatformViewRenderTarget.java (#175284)
<img width="836" height="257" alt="public" src="https://github.com/user-attachments/assets/172b25e2-2dc3-48f2-8781-d3dcd4b19a58" /> ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] All existing and new tests are passing. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [ ] I listed at least one issue that this PR fixes in the description above. - [ ] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
1 parent 5ecb23a commit 6271ecc

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewRenderTarget.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@
1313
*/
1414
public interface PlatformViewRenderTarget {
1515
// Called when the render target should be resized.
16-
public void resize(int width, int height);
16+
void resize(int width, int height);
1717

1818
// Returns the currently specified width.
19-
public int getWidth();
19+
int getWidth();
2020

2121
// Returns the currently specified height.
22-
public int getHeight();
22+
int getHeight();
2323

2424
// The id of this render target.
25-
public long getId();
25+
long getId();
2626

2727
// Releases backing resources.
28-
public void release();
28+
void release();
2929

3030
// Returns true in the case that backing resource have been released.
31-
public boolean isReleased();
31+
boolean isReleased();
3232

3333
// Returns the Surface to be rendered on to.
34-
public Surface getSurface();
34+
Surface getSurface();
3535

3636
// Schedules a frame to be drawn.
37-
public default void scheduleFrame() {}
37+
default void scheduleFrame() {}
3838
}

0 commit comments

Comments
 (0)