From 3600d3c97e835eed3bf34ff3c79fac81acbd0f65 Mon Sep 17 00:00:00 2001 From: Nils Reichardt Date: Mon, 23 May 2022 22:24:48 +0200 Subject: [PATCH] Fix typo "SetTestFluttterStub", "FluttterActivity" and "implementantions" (flutter/engine#33551) As recommended in https://github.com/flutter/engine/pull/33547#issuecomment-1134077565, I fixed all typos in one PR. Fixes https://github.com/flutter/flutter/issues/104366 Fixes https://github.com/flutter/flutter/issues/104367 Fixes https://github.com/flutter/flutter/issues/104368 Fixes https://github.com/flutter/flutter/issues/104369 Fixes https://github.com/flutter/flutter/issues/104370 --- .../android/io/flutter/embedding/android/FlutterActivity.java | 2 +- .../platform/common/client_wrapper/testing/stub_flutter_api.h | 4 ++-- .../glfw/client_wrapper/testing/stub_flutter_glfw_api.h | 4 ++-- .../windows/client_wrapper/testing/stub_flutter_windows_api.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java index ca08f040e64..4d16a2ddab3 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java @@ -1133,7 +1133,7 @@ public class FlutterActivity extends Activity * {@link io.flutter.embedding.engine.FlutterEngine} to outlive this {@code FlutterActivity} so * that it can be used later in a different {@code Activity}. To accomplish this, the {@link * io.flutter.embedding.engine.FlutterEngine} may need to be disconnected from this {@code - * FluttterActivity} at an unusual time, preventing this {@code FlutterActivity} from correctly + * FlutterActivity} at an unusual time, preventing this {@code FlutterActivity} from correctly * managing the relationship between the {@link io.flutter.embedding.engine.FlutterEngine} and * itself. */ diff --git a/engine/src/flutter/shell/platform/common/client_wrapper/testing/stub_flutter_api.h b/engine/src/flutter/shell/platform/common/client_wrapper/testing/stub_flutter_api.h index 6d40719fd4e..8676cab6c28 100644 --- a/engine/src/flutter/shell/platform/common/client_wrapper/testing/stub_flutter_api.h +++ b/engine/src/flutter/shell/platform/common/client_wrapper/testing/stub_flutter_api.h @@ -17,7 +17,7 @@ namespace testing { // the headers in platform/common/public/. // Linking this class into a test binary will provide dummy forwarding -// implementantions of that C API, so that the wrapper can be tested separately +// implementations of that C API, so that the wrapper can be tested separately // from the actual library. class StubFlutterApi { public: @@ -29,7 +29,7 @@ class StubFlutterApi { // will be forwarded. static void SetTestStub(StubFlutterApi* stub); - // Returns the current stub, as last set by SetTestFluttterStub. + // Returns the current stub, as last set by SetTestFlutterStub. static StubFlutterApi* GetTestStub(); virtual ~StubFlutterApi() {} diff --git a/engine/src/flutter/shell/platform/glfw/client_wrapper/testing/stub_flutter_glfw_api.h b/engine/src/flutter/shell/platform/glfw/client_wrapper/testing/stub_flutter_glfw_api.h index b6540639956..0b638eaf897 100644 --- a/engine/src/flutter/shell/platform/glfw/client_wrapper/testing/stub_flutter_glfw_api.h +++ b/engine/src/flutter/shell/platform/glfw/client_wrapper/testing/stub_flutter_glfw_api.h @@ -16,7 +16,7 @@ namespace testing { // the headers in platform/glfw/public/. // Linking this class into a test binary will provide dummy forwarding -// implementantions of that C API, so that the wrapper can be tested separately +// implementations of that C API, so that the wrapper can be tested separately // from the actual library. class StubFlutterGlfwApi { public: @@ -24,7 +24,7 @@ class StubFlutterGlfwApi { // will be forwarded. static void SetTestStub(StubFlutterGlfwApi* stub); - // Returns the current stub, as last set by SetTestFluttterStub. + // Returns the current stub, as last set by SetTestFlutterStub. static StubFlutterGlfwApi* GetTestStub(); virtual ~StubFlutterGlfwApi() {} diff --git a/engine/src/flutter/shell/platform/windows/client_wrapper/testing/stub_flutter_windows_api.h b/engine/src/flutter/shell/platform/windows/client_wrapper/testing/stub_flutter_windows_api.h index b795eab1a6d..125fb3614fb 100644 --- a/engine/src/flutter/shell/platform/windows/client_wrapper/testing/stub_flutter_windows_api.h +++ b/engine/src/flutter/shell/platform/windows/client_wrapper/testing/stub_flutter_windows_api.h @@ -16,7 +16,7 @@ namespace testing { // the headers in platform/windows/public/. // Linking this class into a test binary will provide dummy forwarding -// implementantions of that C API, so that the wrapper can be tested separately +// implementations of that C API, so that the wrapper can be tested separately // from the actual library. class StubFlutterWindowsApi { public: @@ -24,7 +24,7 @@ class StubFlutterWindowsApi { // will be forwarded. static void SetTestStub(StubFlutterWindowsApi* stub); - // Returns the current stub, as last set by SetTestFluttterStub. + // Returns the current stub, as last set by SetTestFlutterStub. static StubFlutterWindowsApi* GetTestStub(); virtual ~StubFlutterWindowsApi() {}