Commit cb4ba47
authored
Fixup deprecation warning in PluginContext.Tool initializer (#8422)
Setting `path` directly in the initializer of PluginContext.Tool
triggers a deprecation warning, because `path` is marked as deprecated.
Set a private field, and have the deprecated public field use a getter
to access it. This resolves the warning.1 parent 24bedf6 commit cb4ba47
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | | - | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
0 commit comments